void () { Stream<String> stream = Stream.of("x"); double random2 = Math.random(); Stream<String> stringStream = stream.filter(t -> true); boolean parallel = stream.isParallel(); double random3 = Math.random(); method(stream); <warning descr="Stream has already been linked or consumed">stream</warning>.filter(t -> true); }