void (@NotNull HighlightSeverity severity, @NotNull DomElement element, @Nullable @InspectionMessage String message, @Nullable GutterIconRenderer renderer) { AnnotationHolder annotationHolder = myHolder.getAnnotationHolder(); final XmlElement xmlElement = element.getXmlElement(); if (xmlElement == null) return; AnnotationBuilder builder = message == null ? annotationHolder.newSilentAnnotation(severity) : annotationHolder.newAnnotation(severity, message); builder = builder.range(xmlElement.getNavigationElement()); if (message != null) { builder = builder.tooltip(message); // no tooltip by default?? } if (renderer != null) { builder = builder.gutterIconRenderer(renderer); } builder.create(); }