Element () { SchemeDataHolder<? super CodeStyleSchemeImpl> dataHolder; synchronized (lock) { dataHolder = myDataHolder; } if (dataHolder == null) { Element newElement = new Element(CODE_STYLE_TAG_NAME); newElement.setAttribute(CODE_STYLE_NAME_ATTR, getName()); myCodeStyleSettings.writeExternal(newElement); logDebug("Saved from CodeStyleSettings"); return newElement; } else { logDebug("Saved from dataHolder"); return dataHolder.read(); } }