boolean (final Object o) { if (this == o) return true; if (!(o instanceof RootAnchor that)) return false; if (myClass != null ? !myClass.equals(that.myClass) : that.myClass != null) return false; if (myFile != null ? !myFile.equals(that.myFile) : that.myFile != null) return false; return true; }