void (@NlsSafe String id) { final DefaultComboBoxModel<String> model = (DefaultComboBoxModel)myLanguage.getModel(); if (model.getIndexOf(id) == -1 && id.length() > 0) { model.insertElementAt(id, 0); } myLanguage.setSelectedItem(id); updateHighlighters(); }