Preferences – Code style issues
Since the 2018.3 version we can enable the checkbox:
Preferences/Settings > Editor > Inspections > Java > Code style issues > Local variable or parameter can be final
Then perform the reformat code action.
If the Code cleanup checkbox is enabled then IDEA will automatically add final where possible.