public boolean isContainerType(ResolvedType type) {
        return type.isArray() || type.isInstanceOf(Collection.class);
    }
Determine whether a given type should be treated as {@link SchemaKeyword#TAG_TYPE_ARRAY} in the generated schema.

@param type type to check
@return whether the given type is an array or subtype of {@link Collection}
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/TypeContext.java