public void resetGroupedSchemes(@NotNull Groups<? extends T> schemeGroups) {
    final DefaultComboBoxModel<MySchemeListItem<T>> model = (DefaultComboBoxModel<MySchemeListItem<T>>)getModel();
    model.removeAllElements();
    mySeparatorInfos.clear();

    for (Groups.GroupInfo<? extends T> schemeGroup: schemeGroups.getInfos()) {
      Collection<? extends T> schemes = schemeGroup.getItems();
      //noinspection HardCodedStringLiteral
      addItems(schemes, scheme -> scheme != null, schemeGroup.getTitle());
    }
  }
public void resetGroupedSchemes(@NotNull Groups<? extends T> schemeGroups)