private static JComboBox<Pair<String, Icon>> tuneUpComboBox(final JComboBox<Pair<String, Icon>> comboBox,
                                                              Factory<? extends List<Pair<String, Icon>>> dataFactory) {
    final List<Pair<String, Icon>> list = dataFactory.create();
    final Set<String> standardValues = new HashSet<>();
    for (final Pair<String, Icon> pair : list) {
      comboBox.addItem(new ComboBoxItem(pair));
      standardValues.add(pair.first);
    }
    return initComboBox(comboBox, object -> standardValues.contains(object));
  }
private static JComboBox<Pair<String, Icon>> tuneUpComboBox(final JComboBox<Pair<String, Icon>> comboBox,
                                                              Factory<? extends List<Pair<String, Icon>>> dataFactory)