public void writeExternal(@NotNull Element element) throws WriteExternalException {
    synchronized (this) {
      if (myCommonSettingsMap == null) {
        return;
      }

      String[] langIds = ArrayUtilRt.toStringArray(ContainerUtil.union(myUnknownSettingsMap.keySet(), myCommonSettingsMap.keySet()));
      Arrays.sort(langIds);
      for (String id : langIds) {
        final Language language = Language.findLanguageByID(id);
        if (language != null && myCommonSettingsMap.containsKey(id)) {
          final CommonCodeStyleSettings commonSettings = myCommonSettingsMap.get(id);
          LanguageCodeStyleProvider provider = LanguageCodeStyleProvider.forLanguage(language);
          if (provider != null) {
            Element commonSettingsElement = writeCommonSettings(id, commonSettings, provider);
            if (!commonSettingsElement.getChildren().isEmpty()) {
              element.addContent(commonSettingsElement);
            }
          }
        }
        else {
          final Content unknown = myUnknownSettingsMap.get(id);
          if (unknown != null) {
            element.addContent(unknown.clone());
          }
        }
      }
    }
  }
public void writeExternal(@NotNull Element element)