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