See also:
\Magento\Sales\Model\Order\Payment::canRefund()
\Magento\Sales\Model\Order\Creditmemo::canRefund()
\Magento\Sales\Model\Order\Invoice::canVoid()