How does \Magento\Eav\Model\Entity\AbstractEntity::loadAllAttributes() work?

Context: How does \Magento\Catalog\Model\Product\Type\AbstractType::getSetAttributes() work?

Details: How is \Magento\Framework\DataObject\AttributeLoaderInterface::loadAllAttributes() implemented?