@Nullable
  public static Object getSelectedValue(DefaultComboBoxModel model) {
    final Object item = model.getSelectedItem();
    return item != null ? ((Item)item).getValue() : null;
  }
@Nullable
  public static Object getSelectedValue(DefaultComboBoxModel model)