ArrayList<MavenServerExecutionResult> (@NotNull LongRunningTask task, @NotNull Collection<File> files, @NotNull List<String> activeProfiles, @NotNull List<String> inactiveProfiles) { try { Collection<Maven40ExecutionResult> results = doResolveProject( task, files, activeProfiles, inactiveProfiles ); ArrayList<MavenServerExecutionResult> list = new ArrayList<>(); results.stream().map(result -> createExecutionResult(result)).forEachOrdered(list::add); return list; } catch (Exception e) { throw myEmbedder.wrapToSerializableRuntimeException(e); } }