MavenResolveProblemHolder (@NotNull Collection<MavenProjectReaderResult> results) { Set<MavenProjectProblem> repositoryBlockedProblems = new HashSet<>(); Set<MavenProjectProblem> unresolvedArtifactProblems = new HashSet<>(); Set<MavenArtifact> unresolvedArtifacts = new HashSet<>(); boolean hasProblem = false; for (MavenProjectReaderResult result : results) { for (MavenProjectProblem problem : result.readingProblems) { if (!hasProblem) hasProblem = true; if (problem.getMavenArtifact() != null) { if (unresolvedArtifacts.add(problem.getMavenArtifact())) { unresolvedArtifactProblems.add(problem); } } String message = problem.getDescription(); if (message != null && message.contains(BLOCKED_MIRROR_FOR_REPOSITORIES)) { repositoryBlockedProblems.add(problem); } } for (MavenProjectProblem problem : result.unresolvedProblems) { if (unresolvedArtifacts.add(problem.getMavenArtifact())) { unresolvedArtifactProblems.add(problem); } } } return new MavenResolveProblemHolder(repositoryBlockedProblems, unresolvedArtifactProblems, unresolvedArtifacts); }