void () { obj = new Object(); SwingUtilities.invokeLater(new Runnable() { public void run() { Object o = obj; if (<warning descr="Condition 'o != null' is always 'true'">o != null</warning>) { System.out.println("x"); } } }); obj = <warning descr="'null' is assigned to a variable that is annotated with @NotNull">null</warning>; }