title: Run IntelliJ code formatter from the command line
body: <p>I am trying to run IntelliJ code formatter from command line.</p>
  
  <p>I know that <a href="https://www.jetbrains.com/idea/help/running-inspections-offline.html?search=forma" rel="nofollow">inspections</a> can be run from CLI, however, they didn't provide the same for the source formatting (lame!).</p>
  
  <p>Now, I started with CE edition of IntelliJ. Source code is on <a href="https://github.com/JetBrains/intellij-community" rel="nofollow">github</a>.</p>
  
  <p>However, since the code base is not small, I am having problems encapsulating the formatter.</p>
  
  <p>Is there anyone who can point me in right direction and showing which classes to start with?</p>