void () { JpsModuleRootModificationUtil.addDependency(myModule, createJDomLibrary()); assertClassRoots(dependencies(myModule), getRtJarJdk17(), getFastUtilJar()); assertClassRoots(dependencies(myModule).withoutSdk(), getFastUtilJar()); assertClassRoots(dependencies(myModule).withoutSdk().productionOnly().runtimeOnly(), getFastUtilJar()); assertClassRoots(dependencies(myModule).withoutLibraries(), getRtJarJdk17()); assertSourceRoots(dependencies(myModule), getFastUtilSources()); }