boolean (@NotNull Tools tools) { InspectionToolWrapper<?, ?> tool = tools.getTool(); return tool instanceof GlobalInspectionToolWrapper && ((GlobalInspectionToolWrapper)tool).worksInBatchModeOnly(); }