public boolean equals(Object o) {
      if (this == o) return true;
      if (!(o instanceof ClassMemberWrapper wrapper)) return false;

      if (myElement instanceof PsiMethod method) {
        return wrapper.myElement instanceof PsiMethod wrapperMethod &&
               MethodSignatureUtil.areSignaturesEqual(method, wrapperMethod);
      }

      return Objects.equals(myElement.getName(), wrapper.myElement.getName());
    }
public boolean equals(Object o)