void () { ArrayList<String> strings = new ArrayList<>(); strings.add("x"); Stream<String> stream = strings.stream().filter(t->true); List<String> collect = stream.collect(Collectors.toList()); double random = Math.random(); boolean parallel = stream.isParallel(); Optional<String> any = <warning descr="Stream has already been linked or consumed">stream</warning>.findAny(); }