public boolean equals(final Object obj) {
    if (!(obj instanceof DomRootInvocationHandler handler)) return false;

    return myParent.equals(handler.myParent);
  }
public boolean equals(final Object obj)