void registerCustomSettings(@NotNull CodeStyleSettings rootSettings, @NotNull CustomCodeStyleSettingsFactory factory) {
    CustomCodeStyleSettings customSettings = factory.createCustomSettings(rootSettings);
    if (customSettings != null) {
      registerCustomSettings(customSettings);
    }
  }
void registerCustomSettings(@NotNull CodeStyleSettings rootSettings, @NotNull CustomCodeStyleSettingsFactory factory)