code: private void getExecutionIdsHelper(final List<Integer> allIds,
        final Collection<Pair<ExecutionReference, ExecutableFlow>> collection) {
      collection.stream().forEach(ref -> allIds.add(ref.getSecond().getExecutionId()));
      Collections.sort(allIds);
    }
docs: /* Helper method to get all execution ids from collection in sorted order.