String (T task) { final String actionId = task.getToolActionId(); if (actionId == null) { LOG.error("Null id"); return ToolsBundle.message("tools.unknown.external.tool"); } Tool tool = task.findCorrespondingTool(); if (tool == null) { return ToolsBundle.message("tools.unknown.external.tool"); } String groupName = tool.getGroup(); String description = StringUtil.isEmpty(groupName) ? tool.getName() : groupName + "/" + tool.getName(); return ToolsBundle .message("tools.before.run.description", description, tool.isEnabled() ? 1 : 0); }