void (@NotNull MavenDomProjectModel projectModel, @NotNull DomElementAnnotationHolder holder) { MultiMap<DependencyConflictId, MavenDomDependency> duplicates = MultiMap.createSet(); collect(duplicates, projectModel.getDependencyManagement().getDependencies()); for (Map.Entry<DependencyConflictId, Collection<MavenDomDependency>> entry : duplicates.entrySet()) { Collection<MavenDomDependency> set = entry.getValue(); if (set.size() <= 1) continue; for (MavenDomDependency dependency : set) { holder.createProblem(dependency, HighlightSeverity.WARNING, MavenProjectBundle.message("inspection.message.duplicated.dependency")); } } }