docs: function getParent(node, predicate) {
    let currentNode = node;
    while (currentNode) {
      if (predicate(currentNode)) {
        return currentNode;
      }
  
      currentNode = currentNode.parent;
    }
  
    return null;
  }