static JComboBox getFocusOwningComboBox() { ret swing(() -> { Component focusOwner = getFocusOwner(); for (JComboBox cb : allSwingComponentsOfType(JComboBox.class)) { ComboBoxEditor editor = cb.getEditor(); if (editor == null) continue; Component c = cb.getEditor().getEditorComponent(); if (c == focusOwner) ret cb; } null; }); }