How does Magento\Setup\Module\Di\Compiler\Config\Reader::fillThirdPartyInterfaces() work?

Context: How does Magento\Setup\Module\Di\Compiler\Config\Reader::generateCachePerScope() work?