void (AntDomElement custom, @InspectionMessage String failedMessage, DomElementAnnotationHolder holder) { final XmlTag tag = custom.getXmlTag(); if (tag == null) { return; } final String name = custom.getXmlElementName(); final TextRange absoluteRange = new TextRange(0, name.length()).shiftRight(tag.getTextRange().getStartOffset() + 1); holder.createProblem(custom, failedMessage); //holder.createErrorAnnotation(absoluteRange, failedMessage); }