private static JComboBox<?> findAncestorCombo(@NotNull Editor editor) {
    return (JComboBox<?>)SwingUtilities.getAncestorOfClass(JComboBox.class, editor.getContentComponent());
  }
private static JComboBox<?> findAncestorCombo(@NotNull Editor editor)