Promise<Void> (@NotNull Module from, @NotNull Module to, @NotNull DependencyScope scope, boolean exported) { final MavenProject toProject = myProjectsManager.findProject(to); if (toProject == null) return null; MavenId mavenId = toProject.getMavenId(); return addDependency(Collections.singletonList(from), mavenId, scope); }