from
Converts the provided material to a collection type
NOTE: In most use cases CollectionType.fromIdentifier should be called first because it calls this method under the hood anyway but also covers the null-cases from this method
Return
null when no collection types match the material