// "Replace with 'Objects.requireNonNull(arr)'" "true-preview" class MyClass { void foo(String[] arr) {} void test() { String[] arr = Math.random() > 0.5 ? null : new String[10]; foo(arr); } }