void (@Nullable Sdk sdk) { List<Sdk> allSdks = PythonSdkUtil.getAllSdks(); List<Sdk> sdkList = new ArrayList<>(allSdks); Sdk selection = null; for (Sdk curSdk: allSdks) { if (curSdk == sdk) { selection = curSdk; } } if (selection == null) { sdkList.add(sdk); selection = sdk; } content.interpreterComboBox.setModel(new CollectionComboBoxModel(sdkList, selection)); }