void () { final String name = getTestFileName(); final PsiReference reference = myFixture.getReferenceAtCaretPositionWithAssertion(name + ".xsl", "included.xsl"); final PsiElement element = resolveXsltReference(reference); assertNotNull("reference did not resolve to XsltElement: " + reference, element); assertTrue(element instanceof XsltParameter); assertEquals("foo", ((XsltParameter)element).getName()); }