private static <T> boolean hasManyNodes(@NotNull JBTreeTraverser<T> traverser, int threshold) {
    return traverser.traverse().take(threshold).size() >= threshold;
  }
private static <T> boolean hasManyNodes(@NotNull JBTreeTraverser<T> traverser, int threshold)