MavenArtifact (@NotNull DependencyConflictId id) { for (MavenArtifact artifact : findArtifacts(id.getGroupId(), id.getArtifactId())) { if (id.equals(DependencyConflictId.create(artifact))) { return artifact; } } return null; }