void (Project project, JComboBox<String> comboBox) { final DefaultComboBoxModel<String> model = new DefaultComboBoxModel<>(); comboBox.setModel(model); model.addElement(JUnitBundle.message("test.discovery.by.all.changes.combo.item")); if (!project.isDefault()) { final List<LocalChangeList> changeLists = ChangeListManager.getInstance(project).getChangeLists(); for (LocalChangeList changeList : changeLists) { model.addElement(changeList.getName()); } } }