The \Magento\Sales\Controller\Adminhtml\Order\Creditmemo\Save::execute() method calls the \Magento\Sales\Api\CreditmemoManagementInterface::refund() with 3 parameters, but the method's signature contains only 2 parameters

The 3-rd argument !empty($data['send_email']) is never used, because the method’s signature contains only 2 parameters: