public function skipToNextNonWhitespace($direction = self::DIR_FORWARD)
    {
        return $this->safeMove(function () use ($direction) {
            $this->moveWithCondition(function () {
                return $this->current()->getType() !== T_WHITESPACE;
            }, $direction);

            return $this;
        })->next();
    }