I would argue that this method belongs on the Query class, and it should accept a Document as an argument. That method would then return a NodeList.