// "Replace with 'stream.findAny().isPresent()'" "true-preview"

import java.util.stream.Collectors;
import java.util.stream.Stream;

class Test {
  boolean isEmpty(Stream<String> stream) {
    return 0 != stream.peek(System.out::println).collect(Collectors.toList()).stream().limit(42).c<caret>ount();
  }
}