void (@NotNull LocalChangeList list) { ComboBoxModel<LocalChangeList> model = myChooser.getModel(); for (int i = 0; i < model.getSize(); i++) { LocalChangeList element = model.getElementAt(i); if (element.getName().equals(list.getName())) { myChooser.setSelectedIndex(i); updateSelectedChangeList(element); return; } } }