_findUp(node, types) {
    let parent = node.parent;
    while (parent) {
      if (types.includes(parent.type)) return parent;
      parent = parent.parent;
    }

    return null;
  }
find node while goes up.
@param {ASTNode} node - start node.
@param {string[]} types - ASTNode types.
@returns {ASTNode|null} found first node.
@private