void () { myFixture.addFileToProject("secondary/my_example_spec.xml", ""); ModuleRootModificationUtil.updateExcludedFolders( getModule(), ModuleRootManager.getInstance(getModule()).getContentRoots()[0], Collections.emptyList(), Collections.singletonList(ModuleRootManager.getInstance(getModule()).getContentRoots()[0].getUrl())); VirtualFile file = myFixture.configureByText( "my_example_spec.xml", """ <describe> <a id='1'></a> </describe> """).getVirtualFile(); doTest(1, file.getPath(), 2, -1); }