@NotNull
  @Override
  public JpsLibraryReference createLibraryReference(@NotNull String libraryName,
                                                    @NotNull JpsElementReference<? extends JpsCompositeElement> parentReference) {
    if (hasCustomReferenceFactory()) {
      for (JpsReferenceCustomFactory extension : JpsServiceManager.getInstance().getExtensions(JpsReferenceCustomFactory.class)) {
        if (extension.isEnabled()) {
          return extension.createLibraryReference(libraryName, parentReference);
        }
      }
    }
    return new JpsLibraryReferenceImpl(libraryName, parentReference);
  }
@NotNull
  @Override
  public JpsLibraryReference createLibraryReference(@NotNull String libraryName,
                                                    @NotNull JpsElementReference<? extends JpsCompositeElement> parentReference)