void () { final PsiJavaReference ref = (PsiJavaReference)configure(); final JavaResolveResult resolveResult = ref.advancedResolve(false); assertTrue(resolveResult.isValidResult()); PsiField field = myFixture.findClass("TestPage").getFields()[0]; assertEquals(field, resolveResult.getElement()); }