void (@NotNull Collection<? extends T> schemes) { final DefaultComboBoxModel<MySchemeListItem<T>> model = (DefaultComboBoxModel<MySchemeListItem<T>>)getModel(); model.removeAllElements(); firstProjectScheme = null; firstIDEScheme = null; if (supportsProjectSchemes()) { addItems(schemes, scheme -> scheme != null && isProjectScheme(scheme)); addItems(schemes, scheme -> scheme != null && !isProjectScheme(scheme)); } else { addItems(schemes, scheme -> scheme != null); } }