public void unregisterCustomSettings(@NotNull CustomCodeStyleSettingsFactory factory) {
    CustomCodeStyleSettings defaultSettings = factory.createCustomSettings(CodeStyleSettings.getDefaults());
    if (defaultSettings != null) {
      synchronized (myCustomSettings) {
        CustomCodeStyleSettings customSettings = myCustomSettings.get(defaultSettings.getClass().getName());
        if (customSettings != null) {
          Element tempElement = new Element("temp");
          customSettings.writeExternal(tempElement, defaultSettings);
          for (Element child : tempElement.getChildren()) {
            myUnknownCustomElements.put(child.getName(), JDOMUtil.internElement(child));
          }
          myCustomSettings.remove(customSettings.getClass().getName());
        }
      }
    }
  }
public void unregisterCustomSettings(@NotNull CustomCodeStyleSettingsFactory factory)