public boolean isEqualsOnly(final Node node) { final Class<?> propertyType = node.getType(); if (propertyType != null) { if (propertyType.getAnnotation(ObjectDiffEqualsOnlyType.class) != null) { return true; } if (equalsOnlyTypes.contains(propertyType)) { return true; } if (Classes.isSimpleType(propertyType)) { return true; } } if (node.isEqualsOnly()) { return true; } if (equalsOnlyProperties.contains(node.getPropertyPath())) { return true; } return false; }