void (@NotNull PsiElement element, @NotNull AnnotationHolder holder) { if (element instanceof PsiFile) { String dump = ThreadDumper.dumpThreadsToString(); assertFalse("At this moment (while the annotations are still running), the file must not have any of its injected fragments processed. threads:\n" + dump, injectedAnnotated.get()); assertFalse("At this moment (while the annotations are still running), the file must not have any of its inspections run. threads:\n"+ dump, inspected.get()); annotated.set(true); iDidIt(); } }