Checked exceptions are a leaky concept in Java.
The Java type system has no union types so you can not have a generics method that abstract more than one exception.
That's why Stream::map can not capture the checked exceptions properly.
That's why Stream::map can not capture the checked exceptions properly.