import java.lang.*; class AssertIsNull { void bar() { final Object o = call(); Assertions.assertIsNull(o); if(o == null) {} } Object call() {return new Object();} }