2 ms·A more idiomatic approach would be Objects.notNull(foo)by ojhughes 9y agoA more idiomatic approach would be Objects.notNull(foo)