docs: private Payment toPayment(final UUID paymentId,
                                @Nullable final Iterable<PaymentTransactionInfoPlugin> pluginTransactions,
                                final boolean withAttempts,
                                final InternalTenantContext tenantContext) {
          final PaymentModelDao paymentModelDao = paymentDao.getPayment(paymentId, tenantContext);
          if (paymentModelDao == null) {
              log.warn("Unable to find payment id " + paymentId);
              return null;
          }
  
          return toPayment(paymentModelDao, pluginTransactions, withAttempts, tenantContext);
      }