void (@NotNull PsiElement element, @NotNull AnnotationHolder holder) { if (element instanceof PsiFile) { // must be after MyFastAnnotator annotated the comment // use this contrived form to be able to bail out immediately by modifying toSleepMs in the other thread while (toSleepMs.addAndGet(-100) > 0) { TimeoutUtil.sleep(100); } } }