boolean (@NotNull JpsMavenRepositoryLibraryDescriptor descriptor, @NotNull List<File> compiledRootsFiles) { if (compiledRootsFiles.size() != descriptor.getArtifactsVerification().size()) { return false; } Set<String> compiledRootsPaths = compiledRootsFiles.stream().map(File::getAbsolutePath).collect(Collectors.toSet()); Set<String> verifiableArtifactsPaths = descriptor.getArtifactsVerification().stream() .map(ArtifactVerification::getUrl) .map(it -> JpsPathUtil.urlToFile(it).getAbsolutePath()) .collect(Collectors.toSet()); return compiledRootsPaths.equals(verifiableArtifactsPaths); }