public static boolean isComboBoxEditor(Component c) {
    return ComponentUtil.getParentOfType((Class<? extends JComboBox>)JComboBox.class, c) != null;
  }
public static boolean isComboBoxEditor(Component c)