void () { PsiFile file = PsiFileFactory.getInstance(myProject).createFileFromText(PlainTextLanguage.INSTANCE, ""); VirtualFile vFile = file.getViewProvider().getVirtualFile(); assertFalse(GlobalSearchScope.allScope(myProject).contains(vFile)); assertFalse(PsiSearchScopeUtil.isInScope(GlobalSearchScope.allScope(myProject), file)); assertTrue(file.getResolveScope().contains(vFile)); assertTrue(PsiSearchScopeUtil.isInScope(file.getResolveScope(), file)); }