Adding `/** @var \WP_Query $query */` for syntax-aware IDEs.