private static void loadRoots(Element rootElement, JpsLibrary library, JpsOrderRootType rootType, @NotNull JpsPathMapper pathMapper) {
    final String type = rootElement.getAttributeValue(TYPE_ATTRIBUTE);
    if (type.equals(COMPOSITE_TYPE)) {
      for (Element element : rootElement.getChildren()) {
        loadRoots(element, library, rootType, pathMapper);
      }
    }
    else if (type.equals(SIMPLE_TYPE)) {
      String url = pathMapper.mapUrl(rootElement.getAttributeValue(URL_ATTRIBUTE));
      if (url != null) {
        library.addRoot(url, rootType);
      }
    }
  }
private static void loadRoots(Element rootElement, JpsLibrary library, JpsOrderRootType rootType, @NotNull JpsPathMapper pathMapper)