ArrayList<MavenGoalExecutionResult> (@NotNull LongRunningTask task, @NotNull Collection<MavenGoalExecutionRequest> requests, @NotNull String goal) { try { ArrayList<MavenGoalExecutionResult> results = new ArrayList<>(); for (MavenGoalExecutionRequest request : requests) { if (task.isCanceled()) break; MavenGoalExecutionResult result = doExecute(request, goal); results.add(result); task.incrementFinishedRequests(); } return results; } catch (Exception e) { throw wrapToSerializableRuntimeException(e); } }