void (@NotNull Project project, @NotNull TaskData taskData, @NotNull ActionCallback actionCallback) { final ExternalTaskExecutionInfo taskExecutionInfo = ExternalSystemActionUtil.buildTaskInfo(taskData); TaskCallback callback = new TaskCallback() { @Override public void onSuccess() { actionCallback.setDone(); } @Override public void onFailure() { actionCallback.setRejected(); } }; ExternalSystemUtil.runTask(taskExecutionInfo.getSettings(), taskExecutionInfo.getExecutorId(), project, GradleConstants.SYSTEM_ID, callback, ProgressExecutionMode.NO_PROGRESS_ASYNC); }