https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Sales/Model/Order/Payment.php#L435-L448
https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Sales/Model/Order/Payment.php#L411-L431
https://github.com/magento/magento2/blob/ffea3cd/app/code/Magento/Sales/Model/Order/Invoice.php#L334-L346
How is \Magento\Sales\Model\Order\Invoice.::capture() implemented and used?
\Magento\Sales\Model\Order\Invoice.::capture()