How does \Magento\Eav\Model\AttributeRepository::addFilterGroupToCollection() work?

Context: How does \Magento\Eav\Model\AttributeRepository::getList() work?