private static Element writeCommonSettings(@NotNull String langId,
                                             @NotNull CommonCodeStyleSettings commonSettings,
                                             @NotNull LanguageCodeStyleProvider provider) {
    Element commonSettingsElement = new Element(COMMON_SETTINGS_TAG);
    commonSettings.writeExternal(commonSettingsElement, provider);
    commonSettingsElement.setAttribute(LANGUAGE_ATTR, langId);
    return commonSettingsElement;
  }
private static Element writeCommonSettings(@NotNull String langId,
                                             @NotNull CommonCodeStyleSettings commonSettings,
                                             @NotNull LanguageCodeStyleProvider provider)