boolean (@NotNull JavaResolveResult cachedResult) { if (super.stopAtFoundResult(cachedResult)) { if (myPlaceFile instanceof JavaCodeFragment) { JavaCodeFragment.VisibilityChecker visibilityChecker = ((JavaCodeFragment)myPlaceFile).getVisibilityChecker(); if (visibilityChecker != null) { PsiElement element = cachedResult.getElement(); if (element instanceof PsiMember) { PsiMember member = (PsiMember)element; return JavaResolveUtil.isAccessible(member, member.getContainingClass(), member.getModifierList(), myPlace, myAccessClass, cachedResult.getCurrentFileResolveScope(), null); } } } return true; } return false; }