Promise<Result> (@NotNull Project project, @NotNull ProjectTaskContext context, ProjectTask @NotNull ... tasks) { AsyncPromise<Result> promise = new AsyncPromise<>(); run(project, context, new ProjectTaskNotificationAdapter(promise), Arrays.asList(tasks)); return promise; }