void (@NotNull String url, @NotNull JpsModuleSourceRootType rootType) { final JpsElementCollection<JpsModuleSourceRoot> roots = myContainer.getChild(JpsModuleSourceRootRole.ROOT_COLLECTION_ROLE); for (JpsModuleSourceRoot root : roots.getElements()) { if (root.getRootType().equals(rootType) && root.getUrl().equals(url)) { roots.removeChild(root); break; } } }