void (boolean preserveSelection, PyConfigurableInterpreterList myInterpreterList) { myPythonSdks = myInterpreterList.getAllPythonSdks(myProject, null); Sdk selection = preserveSelection ? (Sdk)content.interpreterComboBox.getSelectedItem() : null; if (!myPythonSdks.contains(selection)) { selection = null; } myPythonSdks.add(0, null); content.interpreterComboBox.setModel(new CollectionComboBoxModel(myPythonSdks, selection)); }