This inspection reports the variable declaration that can be moved inside when expression.