void () { myComboBox.removeAllItems(); boolean selection = false; for (NamedScopesHolder holder : myNamedScopeHolders) { for (NamedScope scope : holder.getEditableScopes()) { @NlsSafe String name = scope.getScopeId(); myComboBox.addItem(name); if (!selection && name.equals(myVcsConfiguration.UPDATE_FILTER_SCOPE_NAME)) { selection = true; } } } if (selection) { myComboBox.setItem(myVcsConfiguration.UPDATE_FILTER_SCOPE_NAME); } myCheckbox.setSelected(selection); }