@ApiStatus.Internal
  public static void withSession(@NotNull PsiFile psiFile,
                                 @NotNull TextRange restrictRange,
                                 @NotNull TextRange priorityRange,
                                 @Nullable HighlightSeverity minimumSeverity,
                                 boolean isOnTheFly,
                                 @NotNull Consumer<? super LocalInspectionToolSession> runnable) {
    LocalInspectionToolSession session = new LocalInspectionToolSession(psiFile, priorityRange, restrictRange, minimumSeverity);
    runnable.accept(session);
  }
@ApiStatus.Internal
  public static void withSession(@NotNull PsiFile psiFile,
                                 @NotNull TextRange restrictRange,
                                 @NotNull TextRange priorityRange,
                                 @Nullable HighlightSeverity minimumSeverity,
                                 boolean isOnTheFly,
                                 @NotNull Consumer<? super LocalInspectionToolSession> runnable)