How does Magento\Setup\Module\Di\App\Task\Operation\Area::doOperation() work?

Context: How are the generated/medatata files generated in Magento 2.2?



Details: How does Magento\Setup\Module\Di\App\Task\Operation\Area::getDefinitionsCollection() work?

Details: