void (@NotNull PsiElement element) { List<Annotator> annotators = myAnnotators.get(element.getLanguage()); if (!annotators.isEmpty()) { AnnotationHolderImpl holder = myAnnotationHolder; holder.myCurrentElement = element; for (Annotator annotator : annotators) { if (!myDumb || DumbService.isDumbAware(annotator)) { ProgressManager.checkCanceled(); holder.myCurrentAnnotator = annotator; annotator.annotate(element, holder); // assume that annotator is done messing with just created annotations after its annotate() method completed, // so we can start applying them incrementally at last // (but not sooner, thanks to awfully racey Annotation.setXXX() API) holder.queueToUpdateIncrementally(); } } } }