code: private void getFlowsHelper(final ArrayList<ExecutableFlow> flows,
        final Collection<Pair<ExecutionReference, ExecutableFlow>> collection) {
      collection.stream().forEach(ref -> flows.add(ref.getSecond()));
    }
docs: Helper method to get all flows from collection.