public void runWithLocalSettings(@NotNull CodeStyleSettings localSettings,
                                   @NotNull Runnable runnable) {
    CodeStyleSettings tempSettingsBefore = myLocalSettings.get();
    try {
      myLocalSettings.set(localSettings);
      runnable.run();
    }
    finally {
      myLocalSettings.set(tempSettingsBefore);
    }
  }
public void runWithLocalSettings(@NotNull CodeStyleSettings localSettings,
                                   @NotNull Runnable runnable)