public static function comment(string $text = '', bool $addSpaces = false): string
    {
        $space = $addSpaces === true ? ' ' : '';
        return \sprintf('<!--%s%s%s-->', $space, $text, $space);
    }