Result (XmlTag element) { if (XsltSupport.isIncludeOrImport(element)) { final XmlAttribute href = element.getAttribute("href", null); if (href != null) { final PsiFile psiFile = element.getContainingFile(); assert psiFile != null; PsiFile f = psiFile.getOriginalFile(); if (f == psiFile || f.getVirtualFile() == null) f = myDocument.getContainingFile(); final PsiFile file = ResolveUtil.resolveFile(href, f); if (file instanceof XmlFile) { return Result.create(changeDocument(((XmlFile)file).getDocument())); } } } else { return matchImpl(element); } return null; }