void (Object a, Object b) { if (!(a instanceof Base) && !(b instanceof Base)) { return; } if (a instanceof Base) {} if (b instanceof Base) {} if (!a.getClass().equals(b.getClass())) { return; } if (<warning descr="Condition 'a instanceof Base' is always 'true'">a instanceof Base</warning>) {} if (<warning descr="Condition 'b instanceof Base' is always 'true'">b instanceof Base</warning>) {} }