boolean (@Nullable ModuleGroupPathEntity oldData, @Nullable ModuleGroupPathEntity newData) { if ((oldData == null) != (newData == null)) { return true; } if (newData != null && !Objects.equals(newData.getPath(), oldData.getPath())) { return true; } return false; }