Optional.get() method calls without an earlier check that the optional has a value.
If the optional is empty, calling Optional.get() will throw an exception.
Example:
void x(List<Integer> list) {
final Optional<Integer> optional =
list.stream().filter(x -> x > 10).findFirst();
final Integer result = optional.get(); // problem here
}