code: private void getActiveFlowsWithExecutorHelper(
        final List<Pair<ExecutableFlow, Optional<Executor>>> flows,
        final Collection<Pair<ExecutionReference, ExecutableFlow>> collection) {
      for (final Pair<ExecutionReference, ExecutableFlow> ref : collection) {
        flows.add(new Pair<>(ref.getSecond(), ref
            .getFirst().getExecutor()));
      }
    }
docs: /* Helper method for getActiveFlowsWithExecutor