boolean (Object o) { if (isEquals()){ return super.equals(o); } if (this == o) return true; if (!(o instanceof LibraryNode libraryNode)) return false; if (!myLibraryOrJdk.equals(libraryNode.myLibraryOrJdk)) return false; return true; }