How is \Magento\Sales\Model\Order\Payment::setTransactionId() implemented and used?

See also: