MavenDomDependency (MavenDomDependencies dependencies, @Nullable Editor editor, @NotNull final MavenCoordinate id) { MavenDomDependency dep = createDomDependency(dependencies, editor); dep.getGroupId().setStringValue(id.getGroupId()); dep.getArtifactId().setStringValue(id.getArtifactId()); dep.getVersion().setStringValue(id.getVersion()); return dep; }