MavenServerResponse<ArrayList<MavenGoalExecutionResult>> (@NotNull String longRunningTaskId, @NotNull ArrayList<MavenGoalExecutionRequest> requests, @NotNull String goal, MavenToken token) { MavenServerUtil.checkToken(token); try (LongRunningTask task = newLongRunningTask(longRunningTaskId, requests.size(), myConsoleWrapper)) { return new MavenServerResponse<>(executeGoal(task, requests, goal), getLongRunningTaskStatus(longRunningTaskId, token)); } }