The method allows to collect all UDTs used to create a type. This is required to sort UDTs in a topological order.