void (@NotNull String folderName) { WriteAction.runAndWait(() -> { var manager = ModuleRootManager.getInstance(myFixture.getModule()); var model = manager.getModifiableModel(); var testRoot = myFixture.findFileInTempDir(folderName); model.getContentEntries()[0].addSourceFolder(testRoot, true); model.commit(); }); }