private static boolean isSynchronousAdjustment(@NotNull Document document, @NotNull PsiFile file) {
    return ApplicationManager.getApplication().isUnitTestMode() ||
           document.getTextLength() <= MAX_SYNCHRONOUS_ADJUSTMENT_DOC_SIZE && !BlockSupport.isTooDeep(file);
  }
private static boolean isSynchronousAdjustment(@NotNull Document document, @NotNull PsiFile file)