How is \Magento\Sales\Model\Order\Invoice::canVoid() implemented and used?

See also: