code: static boolean isNameReferenced(Node node, String name, Predicate<Node> traverseChildrenPred) {
      return has(node, new MatchNameNode(name), traverseChildrenPred);
    }
docs: Whether a simple name is referenced within the node tree.