public static void copyLabels(final Step<?, ?> fromStep, final Step<?, ?> toStep, final boolean moveLabels) {
        if (!fromStep.getLabels().isEmpty()) {
            for (final String label : moveLabels ? new LinkedHashSet<>(fromStep.getLabels()) : fromStep.getLabels()) {
                toStep.addLabel(label);
                if (moveLabels)
                    fromStep.removeLabel(label);
            }
        }
    }
Returns the name of <i>step</i> truncated to <i>maxLength</i>. An ellipses is appended when the name exceeds
<i>maxLength</i>.

@param step
@param maxLength Includes the 3 "..." characters that will be appended when the length of the name exceeds
                 maxLength.
@return short step name.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/TraversalHelper.java