PsiReference (String... moreFiles) { configure(moreFiles); final PsiElement e = myFixture.getFile().findElementAt(myFixture.getEditor().getCaretModel().getOffset()); assertNotNull(e); final PsiReference reference = e.getContainingFile().findReferenceAt(e.getTextOffset()); assertNotNull(reference); return reference; }