would clearer if getQuerySetQueries returned a new tree, rather than populated a passed in parameter.