docs: public int compareTo(Object that) {
          if (that instanceof GroovyDoc) {
              return name.compareTo(((GroovyDoc) that).name());
          } else {
              throw new ClassCastException(String.format("Cannot compare object of type %s.", that.getClass()));
          }
      }