void () { if (myCheckboxTree != null) { myTemplatesSettings.setProviderToDisabledTemplates(myCheckboxTree.getDisabledTemplatesState()); myTemplatesSettings.setPostfixTemplatesEnabled(myUi.postfixTemplatesEnabled.isSelected()); myTemplatesSettings.setTemplatesCompletionEnabled(myUi.completionEnabledCheckbox.isSelected()); myTemplatesSettings.setShortcut(stringToShortcut((String)myUi.shortcutComboBox.getSelectedItem())); MultiMap<PostfixTemplateProvider, PostfixTemplate> state = myCheckboxTree.getEditableTemplates(); for (PostfixTemplateProvider provider : getProviders()) { PostfixTemplateStorage.getInstance().setTemplates(provider, state.get(provider)); } } }