code: private boolean containsOrigin(Node node) {
      for (int i = node.startSize; i < node.endSize; i++) {
        int start = tree.text.length() - list.get(i);
        int end = start + node.depth;
        if (text.isInsideOrigin(end)) {
          return true;
        }
      }
      return false;
    }
docs: TODO Godin: in fact computations here are the same as in {@link #report(Node)},
  so maybe would be better to remove this duplication,
  however it should be noted that this check can't be done in {@link Collector#endOfGroup()},
  because it might lead to creation of unnecessary new objects