title: IntelliJ IDEA run/debug just one file
body: <p>I have a JAVA project in IntelliJ IDEA that has multiple packages. But some files in my packages have their own <code>main()</code> method and can be run on their own.</p>
  
  <p>However if I do a right click on given file and choose "Debug/Run File.main()" IntelliJ will try to build all the files in the package, no matter if they are included or not. </p>
  
  <p>Is there any way to run just that one file?</p>