void () { VirtualFile dir1 = createChildDirectory(createChildDirectory(myPrjDir1, "dir"), "dir1"); VirtualFile file2 = createChildData(myPrjDir2, "bbb.txt"); VirtualFile dir2 = createChildDirectory(myPrjDir2, "dir2"); FileManagerImpl fileManager = (FileManagerImpl)myPsiManager.getFileManager(); assertNotNull(fileManager.findDirectory(dir1)); PsiFile psiFile2 = fileManager.findFile(file2); PsiDirectory psiDir2 = fileManager.findDirectory(dir2); assertNotNull(psiDir2); PsiTestUtil.addExcludedRoot(myModule, dir1); PsiFile _psiFile2 = fileManager.findFile(file2); assertSame(psiFile2, _psiFile2); PsiDirectory _psiDir2 = fileManager.findDirectory(dir2); assertNotNull(_psiDir2); assertEquals(psiDir2, _psiDir2); fileManager.checkConsistency(); }