void () { DumbModeTestUtils.runInDumbModeSynchronously(myProject, () -> { DumbService.getInstance(myProject).withAlternativeResolveEnabled(() -> { assertNotNull(myJavaFacade.findClass("p.A", GlobalSearchScope.allScope(myProject))); assertNotNull(myJavaFacade.findClass("p.A", new PackageScope(myJavaFacade.findPackage("p"), true, true))); PsiClass bClass = myJavaFacade.findClass("p.B", GlobalSearchScope.allScope(myProject)); assertNotNull(bClass); assertEquals("B", bClass.getName()); }); }); }