boolean (Object o) { if (isEquals()){ return super.equals(o); } if (this == o) return true; return o instanceof PackageNode packageNode && myPackageName.equals(packageNode.myPackageName) && Objects.equals(myPackageQName, packageNode.myPackageQName); }