static bool isCollectionType(Type type) { return type == List || type == Set || type == Map || type == Iterable; }