void () { RunConfiguration configuration = mySettings.getConfiguration(); boolean targetAware = configuration instanceof TargetEnvironmentAwareRunProfile && ((TargetEnvironmentAwareRunProfile)configuration).getDefaultLanguageRuntimeType() != null && RunTargetsEnabled.get(); myPanel.getParent().setVisible(targetAware); if (targetAware) { String defaultTargetName = ((TargetEnvironmentAwareRunProfile)configuration).getDefaultTargetName(); LanguageRuntimeType<?> defaultRuntime = ((TargetEnvironmentAwareRunProfile)configuration).getDefaultLanguageRuntimeType(); myRunOnComboBox.setDefaultLanguageRuntimeType(defaultRuntime); resetRunOnComboBox(defaultTargetName); setTargetName(defaultTargetName); } }