PsiReference[] (final XmlAttributeValue element) { return getReferencesForAttributeValue(element, (token, offset) -> { if (HtmlUtil.hasHtmlPrefix(token)) { final TextRange range = TextRange.from(offset, token.length()); final URLReference urlReference = new URLReference(element, range, true); return new DependentNSReference(element, range, urlReference, true); } return null; }); }