void (@NotNull JpsModuleSourceRoot jpsModuleSourceRoot, @NotNull String url) { final JpsContentEntry dummyJpsContentEntry = new JpsContentEntry(myDummyJpsModule, myDummyJpsRootModel, url); final JpsSourceFolder jpsSourceFolder = new JpsSourceFolder(jpsModuleSourceRoot, dummyJpsContentEntry); myJpsSourceFolders.add(jpsSourceFolder); // since dummyJpsContentEntry created for each source folder, we will dispose it on that source folder disposal Disposer.register(jpsSourceFolder, dummyJpsContentEntry); }