@TestOnly
  public void doWithTemporarySettings(@NotNull CodeStyleSettings tempSettings,
                                      @NotNull Runnable runnable) {
    CodeStyleSettings tempSettingsBefore = getTemporarySettings();
    try {
      setTemporarySettings(tempSettings);
      runnable.run();
    }
    finally {
      if (tempSettingsBefore != null) {
        setTemporarySettings(tempSettingsBefore);
      }
      else {
        dropTemporarySettings();
      }
    }
  }
@TestOnly
  public void doWithTemporarySettings(@NotNull CodeStyleSettings tempSettings,
                                      @NotNull Runnable runnable)