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

See also: