Optional.orElseThrow()
Supplier
예:
optional.orElseThrow(() -> { throw new RuntimeException(); });
빠른 수정을 적용한 후:
optional.orElseThrow(() -> new RuntimeException());
2023.1의 새로운 기능