docs: @Override
      public int compareTo(ComparableMethod rhs) {
          if (rhs instanceof MethodDescriptor) {
              return FieldOrMethodDescriptor.compareTo(this, (MethodDescriptor) rhs);
          }
  
          if (rhs instanceof XMethod) {
              return XFactory.compare((XMethod) this, (XMethod) rhs);
          }
  
          throw new ClassCastException("Can't compare a " + this.getClass().getName() + " to a " + rhs.getClass().getName());
      }