void (@NlsSafe String path) { if (StringUtil.isEmptyOrSpaces(path)) { getComboEditor().setText(""); } else { CollectionComboBoxModel<String> comboModel = getComboModel(); if (!comboModel.contains(path)) { comboModel.add(path); } comboModel.setSelectedItem(path); getComboEditor().setCaretPosition(0); } }