void (@NotNull SdkListModel model) { Object previousSelection = getSelectedItem(); JdkComboBoxModel newModel = new JdkComboBoxModel(model); newModel.setSelectedItem(previousSelection); setModel(newModel); }