public function closest(callable $callback) {
    $matches = [];
    foreach ($this->nodes as $node) {
      if ($match = $node->closest($callback)) {
        $matches[] = $match;
      }
    }
    return new NodeCollection($matches);
  }