for (FlowOut<?> node : flowOutputs) {
outputs.add(node.getFlowElement());
}
passings.removeAll(inputs);
passings.removeAll(outputs);
return new FlowPath(
direction,
direction == FlowPath.Direction.FORWARD ? inputs : outputs,
passings,
direction == FlowPath.Direction.FORWARD ? outputs : inputs);
}