List<LibraryInfo> (final String urlPrefix, ArtifactItem @NotNull [] jars) { return ContainerUtil.mapNotNull(jars, artifactItem -> { String downloadUrl = artifactItem.getUrl(); if (urlPrefix != null) { if (downloadUrl == null) { downloadUrl = artifactItem.getName(); } if (!downloadUrl.startsWith("http://")) { downloadUrl = urlPrefix + downloadUrl; } } return new LibraryInfo(artifactItem.getName(), downloadUrl, downloadUrl, artifactItem.getMD5(), artifactItem.getRequiredClasses()); }); }