private static function seekToNextType(ArrayIterator $tokenIterator, $type)
    {
        while ($tokenIterator->valid()) {
            if (self::isTokenType($tokenIterator->current(), $type)) {
                return;
            }
            $tokenIterator->next();
        }
    }