void (FocusEvent e) { if (!moveFocusBack.get()) { moveFocusBack.set(true); return; } final int size = comboBox.getModel().getSize(); int next = comboBox.getSelectedIndex() + 1; if (size > 0) { if (next < 0 || next >= size) { if (!UISettings.getInstance().getCycleScrolling()) { return; } next = (next + size) % size; } comboBox.setSelectedIndex(next); } ToolWindowManager.getInstance(project).activateEditorComponent(); }