void (String rootPath) { final VirtualFile dir = myFixture.findFileInTempDir(rootPath); final Module module = myFixture.getModule(); assertNotNull(dir); PsiTestUtil.addExcludedRoot(module, dir); Disposer.register(myFixture.getProjectDisposable(), () -> PsiTestUtil.removeExcludedRoot(module, dir)); }