void () { Stream<String> stream = Stream.of("x"); try { method1(); stream.forEach(System.out::println); } finally { <warning descr="Stream might have already been linked or consumed">stream</warning>.forEach(System.out::println); } }