Go to preferences -> Code Style -> Code Generation and enable “Make generated local variables final” in the “Final modifier” section. You can also try searching for “final” in preferences.
Go to preferences -> Code Style -> Code Generation and enable “Make generated local variables final” in the “Final modifier” section. You can also try searching for “final” in preferences.