void (@Nullable File file, @Nullable DependencyResolutionResult result, Collection<MavenProjectProblem> problems) { if (result == null) return; String path = file == null ? "" : file.getPath(); for (Dependency unresolvedDependency : result.getUnresolvedDependencies()) { for (Exception exception : result.getResolutionErrors(unresolvedDependency)) { String message = getRootMessage(exception); Artifact artifact = RepositoryUtils.toArtifact(unresolvedDependency.getArtifact()); MavenArtifact mavenArtifact = Maven3ModelConverter.convertArtifact(artifact, myEmbedder.getLocalRepositoryFile()); problems.add(MavenProjectProblem.createUnresolvedArtifactProblem(path, message, true, mavenArtifact)); break; } } }