void (String sdkHome) { List<Sdk> sdkList = new ArrayList<>(); sdkList.add(null); final List<Sdk> allSdks = ContainerUtil.sorted(PythonSdkUtil.getAllSdks(), new PreferredSdkComparator()); Sdk selection = null; for (Sdk sdk : allSdks) { String homePath = sdk.getHomePath(); if (homePath != null && sdkHome != null && FileUtil.pathsEqual(homePath, sdkHome)) selection = sdk; sdkList.add(sdk); } content.interpreterComboBox.setModel(new CollectionComboBoxModel<>(sdkList, selection)); }