String (ExternalSystemBeforeRunTask task) { final String externalProjectPath = task.getTaskExecutionSettings().getExternalProjectPath(); if (task.getTaskExecutionSettings().getTaskNames().isEmpty()) { return ExternalSystemBundle.message("tasks.before.run.empty", mySystemId.getReadableName()); } String desc = StringUtil.join(task.getTaskExecutionSettings().getTaskNames(), " "); for (Module module : ModuleManager.getInstance(myProject).getModules()) { if (!ExternalSystemApiUtil.isExternalSystemAwareModule(mySystemId, module)) continue; if (StringUtil.equals(externalProjectPath, ExternalSystemApiUtil.getExternalProjectPath(module))) { desc = module.getName() + ": " + desc; break; } } return ExternalSystemBundle.message("tasks.before.run", mySystemId.getReadableName(), desc); }