void (String[] arr1, String[] arr2) { Stream.of(1,2,3,4,5).<warning descr="Redundant 'flatMap()' call">flatMap(Stream::of)</warning>.toArray(); Stream.of(1,2,3,4,5).<warning descr="Redundant 'flatMap()' call">flatMap(t -> Stream.of(t))</warning>.toArray(); Stream.of(arr1, arr2).flatMap(Stream::of).toArray(); }