boolean () { if (myCheckboxTree == null) { return false; } if (myUi.postfixTemplatesEnabled.isSelected() != myTemplatesSettings.isPostfixTemplatesEnabled() || myUi.completionEnabledCheckbox.isSelected() != myTemplatesSettings.isTemplatesCompletionEnabled() || stringToShortcut((String)myUi.shortcutComboBox.getSelectedItem()) != myTemplatesSettings.getShortcut() || !myCheckboxTree.getDisabledTemplatesState().equals(myTemplatesSettings.getProviderToDisabledTemplates())) { return true; } MultiMap<PostfixTemplateProvider, PostfixTemplate> state = myCheckboxTree.getEditableTemplates(); for (PostfixTemplateProvider provider : getProviders()) { if (!PostfixTemplateStorage.getInstance().getTemplates(provider).equals(state.get(provider))) { return true; } } return false; }