private static boolean warnAboutInformationLevelInBatchMode(@NotNull ProblemHighlightType highlightType,
                                                              @NotNull LocalInspectionToolWrapper toolWrapper,
                                                              @NotNull PsiFile psiFile) {
    if (highlightType == ProblemHighlightType.INFORMATION) {
      String shortName = toolWrapper.getShortName();
      if (ourToolsWithInformationProblems.add(shortName)) {
        String message = "Tool #" + shortName + " (" + toolWrapper.getTool().getClass()+")"+
                         " registers 'INFORMATION'-level problem in batch mode on " + psiFile + ". " +
                         "Warnings of the 'INFORMATION' level are invisible in the editor and should not become visible in batch mode. " +
                         "Moreover, since 'INFORMATION'-level fixes act more like intention actions, they could e.g. change semantics and " +
                         "thus should not be suggested for batch transformations";
        LocalInspectionEP extension = toolWrapper.getExtension();
        if (extension == null) {
          LOG.error(message);
        }
        else {
          LOG.warn(new PluginException(message, extension.getPluginDescriptor().getPluginId()));
        }
      }
      return true;
    }
    return false;
  }
private static boolean warnAboutInformationLevelInBatchMode(@NotNull ProblemHighlightType highlightType,
                                                              @NotNull LocalInspectionToolWrapper toolWrapper,
                                                              @NotNull PsiFile psiFile)