private static <P extends JpsElement> JpsLibrary createLibrary(String name, JpsLibraryPropertiesSerializer<P> loader,
                                                                 final Element propertiesElement,
                                                                 @NotNull JpsPathMapper pathMapper) {
    return JpsElementFactory.getInstance().createLibrary(name, loader.getType(), loader.loadProperties(propertiesElement, pathMapper));
  }
private static <P extends JpsElement> JpsLibrary createLibrary(String name, JpsLibraryPropertiesSerializer<P> loader,
                                                                 final Element propertiesElement,
                                                                 @NotNull JpsPathMapper pathMapper)