// "Make 'x' effectively final by moving initializer to the 'if' statement" "false" class Abc { interface A{} interface B{ void m(); } void test(Object obj) { var x = (A & B) obj; if (Math.random() > 0.5) { x = null; } Runnable r = () -> { if (x != null) x.m(); }; } }