void (@NotNull DomFileElement<T> domFileElement, @NotNull DomElementAnnotationHolder holder) { final DomHighlightingHelper helper = DomElementAnnotationsManager.getInstance(domFileElement.getManager().getProject()).getHighlightingHelper(); final Consumer<DomElement> consumer = new Consumer<>() { @Override public void accept(DomElement element) { checkChildren(element, this); checkDomElement(element, holder, helper); } }; consumer.accept(domFileElement.getRootElement()); }