void (ComboBox<JrePathEditor.JreComboBoxItem> component, @NotNull String text) { JrePathEditor.CustomJreItem item = new JrePathEditor.CustomJreItem(FileUtil.toSystemIndependentName(text)); if (component.isEditable()) { component.getEditor().setItem(item); } else { ((SortedComboBoxModel<JrePathEditor.JreComboBoxItem>)component.getModel()).add(item); component.setItem(item); } }