Moved method to ASTQuery and generalized it to arbitrary ASTNodes