protected function handleStatement($line, $type)
    {
        if (!preg_match("/^{$type}$/", $line)) {
            throw new \UnexpectedValueException("Expected a {$type} statement, got {$line}");
        }

        $params = [];
        $param = $this->handleParam();

        while ($param !== null) {
            $params = $params + $param;
            $param = $this->handleParam();
        }

        return $params;
    }