public static void applyTraversalRecursively(final Consumer<Traversal.Admin<?, ?>> consumer, final Traversal.Admin<?, ?> traversal) {
        applyTraversalRecursively(consumer, traversal, false);
    }
Apply the provider {@link Consumer} function to the provided {@link Traversal} and all of its children.

@param consumer  the function to apply to the each traversal in the tree
@param traversal the root traversal to start application
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/TraversalHelper.java