public boolean isCollection() {
        return this == LIST || this == SET;
    }
Returns {@code true} if the type is a collection.v
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/GType.java