void (Object obj, Object obj1, Object obj2) { if(<warning descr="Unnecessary 'null' check before 'check()' call">obj != null</warning> && check(obj)) { System.out.println("ok"); } if(<warning descr="Unnecessary 'null' check before 'check1()' call">obj1 != null</warning> && obj2 != null && check1(obj1, obj2)) { System.out.println("ok"); } if(obj1 != null && <warning descr="Unnecessary 'null' check before 'check2()' call">obj2 != null</warning> && check2(obj1, obj2)) { System.out.println("ok"); } if(obj != null && check1(obj, obj.toString())) { System.out.println("ok"); } }