public function query(Query $query = null)
    {
        deprecationWarning(
            'ValuesExpression::query() is deprecated. ' .
            'Use ValuesExpression::setQuery()/getQuery() instead.'
        );
        if ($query !== null) {
            return $this->setQuery($query);
        }

        return $this->getQuery();
    }