void () { VirtualFile moduleRoot = getTempDir().createVirtualDir(); ModuleRootModificationUtil.addContentRoot(getModule(), moduleRoot.getPath()); GlobalSearchScope projectScope = GlobalSearchScope.projectScope(getProject()); assertFalse(projectScope.isSearchInLibraries()); assertTrue(projectScope.isSearchInModuleContent(getModule())); assertTrue(projectScope.contains(moduleRoot)); GlobalSearchScope notProjectScope = GlobalSearchScope.notScope(projectScope); assertTrue(notProjectScope.isSearchInLibraries()); assertFalse(notProjectScope.contains(moduleRoot)); GlobalSearchScope allScope = GlobalSearchScope.allScope(getProject()); assertTrue(allScope.isSearchInLibraries()); assertTrue(allScope.contains(moduleRoot)); GlobalSearchScope notAllScope = GlobalSearchScope.notScope(allScope); assertFalse(notAllScope.contains(moduleRoot)); }