void (String className, @Nullable String packageScopeName, boolean deep, String... expected) { SearchScope scope; if (packageScopeName != null) { PsiPackage aPackage = JavaPsiFacade.getInstance(myFixture.getProject()).findPackage(packageScopeName); assertNotNull(aPackage); scope = PackageScope.packageScope(aPackage, true).intersectWith(GlobalSearchScope.projectScope(myFixture.getProject())); } else { scope = GlobalSearchScope.projectScope(myFixture.getProject()); } assertSameElements(getInheritorNames(className, deep, scope), expected); }