private function formatEmail(string $email, string $name = null): array
    {
        if (!$name && \preg_match('#^(.+) +<(.*)>\z#', $email, $matches)) {
            return [$matches[2] => $matches[1]];
        }

        return [$email => $name];
    }