https://localsd.blogspot.com/2023/07/you-cannot-use-modifiers-on-local.html
You Cannot Use Modifiers On Local Variables Inside A Method Except Final.