How does \Magento\Quote\Model\Quote\Address\Total\AbstractTotal::collect() work?

Context: