"Cannot refer to a non-final variable" fix

> Cannot refer to a non-final variable inside an inner class defined in
a different method