void () { JpsLibrary library = addLibrary(); String libraryUrl = "temp:///library"; library.addRoot(libraryUrl, JpsAnnotationRootType.INSTANCE); JpsModuleRootModificationUtil.addDependency(myModule, library); assertEnumeratorRoots(dependencies(myModule).annotations(), libraryUrl); String moduleUrl = "temp://module"; JpsJavaExtensionService.getInstance().getOrCreateModuleExtension(myModule).getAnnotationRoots().addUrl(moduleUrl); assertEnumeratorRoots(dependencies(myModule).annotations(), moduleUrl, libraryUrl); }