SearchScope (@NotNull PsiElement element) { if (element instanceof PsiField && ((PsiField)element).hasModifierProperty(PsiModifier.PRIVATE)) { PsiClass containingClass = ((PsiField)element).getContainingClass(); if (containingClass != null && PsiUtil.isLocalOrAnonymousClass(containingClass)) return null; final GlobalSearchScope maximalUseScope = ResolveScopeManager.getElementUseScope(element); return new GrSourceFilterScope(maximalUseScope); } return null; }