/** * Collect and mark all unmarked {@link LazyExecutionLineageNode}s in this instance. * * @param executionLineageCollector collects the unmarked {@link ExecutionLineageNode} * @param channelInstanceCollector collects the {@link ChannelInstance} in the unmarked {@link LazyExecutionLineageNode}s * @return the two collectors */ public Tuple<Collection<ExecutionLineageNode>, Collection<ChannelInstance>> collectAndMark( Collection<ExecutionLineageNode> executionLineageCollector, Collection<ChannelInstance> channelInstanceCollector ) { return this.traverseAndMark( new Tuple<>(executionLineageCollector, channelInstanceCollector), new CollectingAggregator() ); }