boolean (Object o) { if (this == o) return true; return o instanceof PackageElement packageElement && myIsLibraryElement == packageElement.myIsLibraryElement && myElement.equals(packageElement.myElement) && Objects.equals(myModule, packageElement.myModule); }