void (CodeStyleSettings settings) { try { myModel.setUiEventsEnabled(false); if (myTab instanceof CodeStyleConfigurable) { ((CodeStyleConfigurable)myTab).reset(settings); } else { myTab.reset(); } updatePreview(); } finally { myModel.setUiEventsEnabled(true); } }