void (@Nullable PsiFileSystemItem expectedResolve) { myFixture.configureByFile(getTestName(false) + ".java"); final PsiReference referenceAt = myFixture.getFile().findReferenceAt(myFixture.getEditor().getCaretModel().getOffset()); assertNotNull(referenceAt); assertEquals(expectedResolve, referenceAt.resolve()); }