void (@NotNull PsiElement psiElement, @NotNull AnnotationHolder holder, PyAnnotator[] annotators) { PsiFile file = holder.getCurrentAnnotationSession().getFile(); for (PyAnnotator annotator : annotators) { if (file instanceof PyFileImpl && !((PyFileImpl)file).isAcceptedFor(annotator.getClass())) continue; annotator.annotateElement(psiElement, holder); } }