boolean (PsiReference reference) { final PsiFile file = reference.getElement().getContainingFile(); final String basePath = file instanceof XmlFile ? HtmlUtil.getHrefBase((XmlFile)file) : null; return basePath == null || !HtmlUtil.hasHtmlPrefix(basePath); }