void () { PsiReference ref = configure(); final JavaResolveResult result = ((PsiJavaReference)ref).advancedResolve(true); PsiElement target = result.getElement(); assertTrue(target instanceof PsiClass); assertFalse(result.isAccessible()); }