I actually prefer
Optional.of(bar)
.map(Bar::baz)
.orElse(null)
You can crucify me but there is no way to miss the point in a quick glance here and I doubt that with JVM optimizations there is any meaningful performance impact, exceptionally in business code.