EditorEx () { EditorEx result = super.createEditor(); result.addFocusListener(new FocusChangeListener() { @Override public void focusGained(@NotNull Editor editor) { repaintComboBox(); } @Override public void focusLost(@NotNull Editor editor) { repaintComboBox(); } }); return result; }