The methods \Magento\Sales\Model\Order\Payment\Operations\AbstractOperation::getInvoiceForTransactionId() and \Magento\Sales\Model\Order\Payment::_getInvoiceForTransactionId() duplicate almost the same code

\Magento\Sales\Model\Order\Payment\Operations\AbstractOperation::getInvoiceForTransactionId()

\Magento\Sales\Model\Order\Payment::_getInvoiceForTransactionId()