MavenDomParent (@NotNull final MavenDomProjectModel mavenModel, Editor editor) { SelectMavenProjectDialog d = new SelectMavenProjectDialog(editor.getProject(), null); if (!d.showAndGet()) { return null; } final MavenProject parentProject = d.getResult(); if (parentProject == null) return null; return WriteCommandAction.writeCommandAction(editor.getProject()).withName(getDescription()) .compute(() -> MavenDomUtil.updateMavenParent(mavenModel, parentProject)); }