Settings listener made infering type of the argument of one-parameter lambda