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