public boolean equals(final Object o) {
    if (this == o) return true;
    if (!(o instanceof XmlElementDescriptorByType that)) return false;

    if (myType != null ? !myType.equals(that.myType) : that.myType != null) return false;

    return true;
  }
public boolean equals(final Object o)