String (RunConfigurableBeforeRunTask task) { Pair<RunnerAndConfigurationSettings, ExecutionTarget> settingsWithTarget = task.getSettingsWithTarget(); if (settingsWithTarget.first == null) { if (task.typeNameTarget.getName() == null) { return ExecutionBundle.message("before.launch.run.another.configuration"); } else { return ExecutionBundle.message("before.launch.run.certain.configuration", task.typeNameTarget.getName()); } } else { String text = ConfigurationSelectionUtil.getDisplayText(settingsWithTarget.first.getConfiguration(), settingsWithTarget.second); return ExecutionBundle.message("before.launch.run.certain.configuration", text); } }