void (@NotNull List<@NlsSafe String> recentDirectories) { final ComboBox<String> comboBox = myDirectoryComboBox.getChildComponent(); myUpdating = true; try { comboBox.removeAllItems(); for (int i = recentDirectories.size() - 1; i >= 0; i--) { comboBox.addItem(recentDirectories.get(i)); } } finally { myUpdating = false; } }