public Set<String> getReferencedLabels() {
        return referencedLabels;
    }
Gets a list of all labels held in parameters that have a traversal as a value.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/util/Parameters.java