void (int x) { Stream<String> stream = Stream.of("x"); if (x == 0) { Iterator<String> iterator = stream.iterator(); } Iterator<String> iterator2 = <warning descr="Stream might have already been linked or consumed">stream</warning>.iterator(); }