Supplier
lambdas in Optional.orElseThrow()
calls that throw an exception, instead of returning it.
Example:
optional.orElseThrow(() -> {
throw new RuntimeException();
});
After the quick-fix is applied:
optional.orElseThrow(() -> new RuntimeException());
New in 2023.1