void () { myTestFileName = ORDINARY_PACK_DIR + "/script.py"; PsiFile currentFile = prepareFile(); PsiTestUtil.addExcludedRoot(myFixture.getModule(), myFixture.findFileInTempDir("excluded")); PsiElement element = doResolve(currentFile); assertInstanceOf(element, PsiDirectory.class); assertEquals(myFixture.findFileInTempDir("excluded"), ((PsiDirectory)element).getVirtualFile()); }