boolean (@NotNull Attribute attribute) { final Element parent = attribute.getParent(); final String parentName = parent.getName(); if ("MESSAGE".equals(parentName) && Constants.VALUE.equals(attribute.getName())) { return true; } if (Constants.OPTION.equals(parentName) && "LAST_COMMIT_MESSAGE".equals(parent.getAttributeValue(Constants.NAME))) { return true; } // ignore comment field of ChangeListManager.list and in general any attribute named "comment" since in most cases value should be stored as is if ("comment".equals(attribute.getName())) { return true; } return false; }