title: IntelliJ IDEA scripting
body: <p>Is there some console app (may be pluging) which would allow me to control IDEA via a script (not via the GUI)?</p>
  
  <p>Example script I want to write:</p>
  
  <pre><code>find all classes that ends with "Factory"
  Refactor:rename method XXX with XXXNew
  put annottion on class @Entity
  </code></pre>