Object (@NotNull Object defVal, @Nullable final Object val) { if (val.<warning descr="Method invocation 'equals' may produce 'NullPointerException'">equals</warning>(defVal)) { return defVal; } return defVal; }