void (final Element element) { if (myLanguageLevel != null) { element.setAttribute(LANGUAGE_LEVEL, myLanguageLevel.name()); } Boolean aBoolean = getDefault(); if (aBoolean != null && aBoolean != myProject.isDefault()) { // do not write default 'true' for default project element.setAttribute(DEFAULT_ATTRIBUTE, Boolean.toString(aBoolean)); } }