public static MavenDomDependency createDependencyInWriteAction(@NotNull MavenDomProjectModel mavenModel,
                                                                 @NotNull Editor editor,
                                                                 @NotNull Map<DependencyConflictId, MavenDomDependency> managedDependencies,
                                                                 @NotNull List<? extends MavenCoordinate> ids,
                                                                 @NotNull XmlFile psiFile) {
    return WriteCommandAction.writeCommandAction(psiFile.getProject(), psiFile).withName(MavenDomBundle.message("generate.dependency"))
      .compute(() -> createDependency(mavenModel, editor, managedDependencies, ids));
  }
public static MavenDomDependency createDependencyInWriteAction(@NotNull MavenDomProjectModel mavenModel,
                                                                 @NotNull Editor editor,
                                                                 @NotNull Map<DependencyConflictId, MavenDomDependency> managedDependencies,
                                                                 @NotNull List<? extends MavenCoordinate> ids,
                                                                 @NotNull XmlFile psiFile)