SearchScope () { PsiClass aClass = Objects.requireNonNull(getContainingClass()); PsiClass containingClass = aClass.getContainingClass(); while (containingClass != null) { aClass = containingClass; containingClass = containingClass.getContainingClass(); } return new LocalSearchScope(aClass); }