void (int stage) { if (stage == 0 && "recompileTargetOnExportedLibraryChange".equals(getTestName(true))) { final JpsTypedLibrary<JpsDummyElement> library = myProject.getLibraryCollection().findLibrary("l", JpsJavaLibraryType.INSTANCE); assertNotNull(library); for (String url : library.getRootUrls(JpsOrderRootType.COMPILED)) { library.removeUrl(url, JpsOrderRootType.COMPILED); } library.addRoot(new File(getAbsolutePath("moduleA/lib/util_new.jar")), JpsOrderRootType.COMPILED); } else { super.modify(stage); } }