public function setForeground(FormatForeground $foreground = null): void
    {
        if (null === $foreground) {
            $this->foreground = null;

            return;
        }

        $this->foreground = $foreground->getValue();
    }