Object (@NotNull Object defVal, @Nullable final Object val) { if (val != null) { return val; } if (<warning descr="Condition 'defVal.equals(val)' is always 'false'">defVal.equals(val)</warning>) { return val; } return defVal; }