void () { int[] ints = new int[3]; IntStream stream = Arrays.stream(ints); stream.close(); double random = Math.random(); IntStream distinct = <warning descr="Stream has already been linked or consumed">stream</warning>.distinct(); }