Promise<Void> (@NotNull Collection<? extends Module> from, @NotNull ExternalLibraryDescriptor libraryDescriptor, @NotNull DependencyScope scope) { for (JavaProjectModelModifier modifier : getModelModifiers()) { Promise<Void> promise = modifier.addExternalLibraryDependency(from, libraryDescriptor, scope); if (promise != null) { return promise; } } return Promises.rejectedPromise(); }