protected function addBodies(\Swift_Message $message, MailRenderedInterface $mailRendered): void
    {
        $textPlain = $mailRendered->getBody();
        $html = $mailRendered->getHtmlBody();

        if (null === $html) {
            $message->setBody($textPlain, 'text/plain');

            return;
        }

        $message->setBody($html, 'text/html');

        if (null !== $textPlain) {
            $message->addPart($textPlain, 'text/plain');
        }
    }