void () { myTestFixture.copyFileToProject("include.rng"); final PsiReference ref = myTestFixture.getReferenceAtCaretPositionWithAssertion("resolve-include-ref-1.rng"); final PsiElement element = ref.resolve(); assertTrue(element instanceof XmlTag); assertNotSame(element.getContainingFile(), ref.getElement().getContainingFile()); assertEquals(0, ((XmlTag)element).getSubTags().length); }