internal static TypeUsage ToElementTypeUsage(this TypeUsage typeUsage) { return typeUsage.IsCollectionType() ? ((CollectionType)typeUsage.EdmType).TypeUsage : null; }