void (@Nullable String targetNameToChoose) { myRunOnComboBox.initModel(); List<TargetEnvironmentConfiguration> configs = TargetEnvironmentsManager.getInstance(myProject).getTargets().resolvedConfigs(); myRunOnComboBox.addTargets(ContainerUtil.filter(configs, configuration -> { return TargetEnvironmentConfigurationKt.getTargetType(configuration).isSystemCompatible(); })); myRunOnComboBox.selectTarget(targetNameToChoose); }