Promise<Void> (@NotNull Module from, @NotNull Module to, @NotNull DependencyScope scope, boolean exported) { for (JavaProjectModelModifier modifier : getModelModifiers()) { Promise<Void> promise = modifier.addModuleDependency(from, to, scope, exported); if (promise != null) { return promise; } } return Promises.rejectedPromise(); }