void () { Stream<String> stream = Stream.of("x"); try { Iterator<String> iterator = stream.iterator(); } catch (Exception e) { Spliterator<String> spliterator = <warning descr="Stream has already been linked or consumed">stream</warning>.spliterator(); } }