title: IntelliJ Plugin - Needs to hook into existing actions
body: <p>I'm writing a plugin to IntelliJ, and need to hook into some of the existing actions that already exist, like when a file is saved, the code is compiled, or a refactoring happens. I wasn't able to find any info on the plugin site about existing actions, only new actions. </p>
  
  <p>These posts are similar: 
  <a href="https://stackoverflow.com/questions/3707316/save-actions-in-intellij-idea">Save actions in IntelliJ IDEA</a> 
  <a href="https://stackoverflow.com/questions/946993/intellij-reformat-on-file-save">Intellij reformat on file save</a></p>
  
  <p>but since they don't include actually writing a plugin, I'm hoping there may be some internal hook for doing so.</p>