function hasDescendant(node, { getVisitorKeys, predicate }) {
  for (const descendant of getDescendants(node, { getVisitorKeys })) {
    if (predicate(descendant)) {
      return true;
    }
  }

  return false;
}
@param {Node} node
@param {{getVisitorKeys: GetVisitorKeys, predicate: Predicate}} options