Set<DependencyConflictId> (@NotNull final MavenDomProjectModel model) { final Set<DependencyConflictId> existingDependencies = new HashSet<>(); for (MavenDomDependency dependency : model.getDependencies().getDependencies()) { DependencyConflictId id = DependencyConflictId.create(dependency); if (id != null) { existingDependencies.add(id); } } return existingDependencies; }