void writeExternal(@NotNull Element element, @NotNull CodeStyleSettings defaultSettings) {
    List<String> tags = new ArrayList<>();
    Element tempRoot = new Element("temp");
    Collection<CustomCodeStyleSettings> allSettings = getAllSettings();
    for (CustomCodeStyleSettings settings : allSettings) {
      tags.addAll(settings.getKnownTagNames());
      settings.writeExternal(tempRoot, defaultSettings.getCustomSettings(settings.getClass()));
    }
    tags.addAll(myUnknownCustomElements.keySet());
    Collections.sort(tags);
    for (String tag : tags) {
      Element child = tempRoot.getChild(tag);
      if (child != null) {
        element.addContent(child.clone());
      }
      else if (myUnknownCustomElements.containsKey(tag)) {
        element.addContent(myUnknownCustomElements.get(tag).clone());
      }
    }
  }
void writeExternal(@NotNull Element element, @NotNull CodeStyleSettings defaultSettings)