Test (Test t) { if (<warning descr="Condition 't instanceof Test' is redundant and can be replaced with a null check">t instanceof Test</warning>) { // redundant instanceof error here. t can be null foo(null); } return null; }