void (@NotNull Element element, @Nullable String defaultName) { if (myName != null && !myName.equals(defaultName)) { JDOMExternalizerUtil.writeField(element, NAME_OPTION, myName); } if (myEnabled != myEnabledDefaultValue) { JDOMExternalizerUtil.writeField(element, ENABLED_OPTION, Boolean.toString(myEnabled)); } if (myClassName != null) { JDOMExternalizerUtil.writeField(element, CLASSNAME_OPTION, myClassName); } if (!myShowType) { // default is true JDOMExternalizerUtil.writeField(element, SHOW_TYPE_OPTION, Boolean.toString(myShowType)); } }