title: How to set up checkstyle idea-plugin to automatically enforce a rule upon saving file?
body: <p>I've been using Checkstyle with Eclipse, with a rule for making all local variables final. This rule is enforced when saving, so if a file containing a local variable without a final modifier is saved, final is automatically added to the variable declaration.</p>
  
  <p>Now I've switched to IntelliJ IDEA, and i'm using Checkstyle to enforce this same rule here. But, instead of automatically adding the final modifier when saving, the variables are marked as erroneous, and I have to press ALT+enter enter to get the final modifier added, once for each variable. This is quite impractical, as I am doing further development on a quite large code base, where no variables have been marked as final.</p>
  
  <p>Is there a way to set up Checkstyle with IDEA, in order to get it to add the final modifier to local variables automatically upon saving, as it does with Eclipse?   </p>