public default boolean hasBarrierInValueTraversal() {
        return null != determineBarrierStep(getValueTraversal());
    }
Checks if there is a non-local {@link Barrier} in the value traversal.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/Grouping.java