void () { VirtualFile mainModuleRoot = ModuleRootManager.getInstance(myModule).getContentRoots()[0]; PsiTestUtil.addExcludedRoot(myModule, mainModuleRoot.findFileByRelativePath("exc")); PsiTestUtil.addContentRoot(myModule, mainModuleRoot.findFileByRelativePath("exc/gen")); myStructure.setShowLibraryContents(false); assertStructureEqual(""" Project contentRootUnderExcluded B.txt exc excluded.txt gen A.java """); myStructure.hideExcludedFiles(); assertStructureEqual(""" Project Module contentRootUnderExcluded B.txt gen A.java """); }