boolean (@NotNull Map<String, Element> settings, @NotNull Element element) { // returns true when settings are default, so defaults will not be saved in profile boolean enabled = myWrapper.isEnabledByDefault(); return Boolean.parseBoolean(element.getAttributeValue("enabled")) == enabled && Boolean.parseBoolean(element.getAttributeValue("enabled_by_default")) == enabled && myWrapper.getDefaultLevel().toString().equals(element.getAttributeValue("level")) && element.getChildren("scope").isEmpty(); }