protected function addAddresses($address, string $name, string $type): void
    {
        if (\is_array($address)) {
            $set = \sprintf('set%s', $type);
            $this->swift->{$set}($address, $name);

            return;
        }

        $add = \sprintf('add%s', $type);
        $this->swift->{$add}($address, $name);
    }