void (Sdk sdkToSelect, boolean selectAnySdk) { final List<Sdk> sdkList = ProjectJdkTable.getInstance().getSdksOfType(PythonSdkType.getInstance()); if (selectAnySdk && sdkList.size() > 0) { sdkToSelect = sdkList.get(0); } sdkList.add(0, null); getComboBox().setModel(new DefaultComboBoxModel(sdkList.toArray(new Sdk[0]))); getComboBox().setSelectedItem(sdkToSelect); }