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