static <T> T computeWithSession(boolean batchMode,
                                  @NotNull Object annotator,
                                  @NotNull AnnotationSession session,
                                  @NotNull Function<? super AnnotationHolderImpl, T> runnable) {
    AnnotationHolderImpl holder = new AnnotationHolderImpl(annotator, session, batchMode);
    return runnable.apply(holder);
  }
static <T> T computeWithSession(boolean batchMode,
                                  @NotNull Object annotator,
                                  @NotNull AnnotationSession session,
                                  @NotNull Function<? super AnnotationHolderImpl, T> runnable)