Promise<Void> (@NotNull Module from, @NotNull Library library, @NotNull DependencyScope scope, boolean exported) { WriteAction.run(() -> OrderEntryUtil.addLibraryToRoots(from, library, scope, exported)); return Promises.resolvedPromise(null); }