@TestOnly
  public void doWithTemporarySettings(@NotNull CodeStyleSettings baseSettings,
                                      @NotNull Consumer<? super CodeStyleSettings> tempSettingsConsumer) {
    CodeStyleSettings tempSettingsBefore = getTemporarySettings();
    try {
      CodeStyleSettings tempSettings = createTemporarySettings();
      tempSettings.copyFrom(baseSettings);
      tempSettingsConsumer.accept(tempSettings);
    }
    finally {
      if (tempSettingsBefore != null) {
        setTemporarySettings(tempSettingsBefore);
      }
      else {
        dropTemporarySettings();
      }
    }
  }
@TestOnly
  public void doWithTemporarySettings(@NotNull CodeStyleSettings baseSettings,
                                      @NotNull Consumer<? super CodeStyleSettings> tempSettingsConsumer)