void (@NotNull Element state) { synchronized (myStateLock) { LOG.info("Loading Project code style"); super.loadState(state); updateFromOldProjectSettings(); for (Element subStyle : state.getChildren(CodeStyleScheme.CODE_STYLE_TAG_NAME)) { String name = subStyle.getAttributeValue(CodeStyleScheme.CODE_STYLE_NAME_ATTR); CodeStyleSettings settings = createSettings(); settings.readExternal(subStyle); if (MAIN_PROJECT_CODE_STYLE_NAME.equals(name)) { setMainProjectCodeStyle(settings); } else { mySettingsMap.put(name, settings); } LOG.info(name + " code style loaded"); } myIsLoaded = true; } }