This inspection reports a
when
expression that can be simplified by introducing a subject argument.