void (@NotNull Project project, @NotNull MavenProjectProblem problem) { MavenSyncConsole syncConsole = MavenProjectsManager.getInstance(project).getSyncConsole(); String message = problem.getDescription(); if (message == null) return; if (message.contains(BLOCKED_MIRROR_FOR_REPOSITORIES)) { BuildIssue buildIssue = RepositoryBlockedSyncIssue.getIssue(project, problem.getDescription()); syncConsole.getListener(MavenServerConsoleIndicator.ResolveType.DEPENDENCY) .showBuildIssue(buildIssue.getTitle(), buildIssue); } else if (problem.getMavenArtifact() == null) { MavenProjectsManager.getInstance(project).getSyncConsole() .addWarning(SyncBundle.message("maven.sync.annotation.processor.problem"), message); } if (problem.getMavenArtifact() != null) { syncConsole.getListener(MavenServerConsoleIndicator.ResolveType.DEPENDENCY) .showArtifactBuildIssue(problem.getMavenArtifact().getMavenId().getKey(), message); } }