title: Java/IntelliJ keep classes in another folder but in the same package
body: <p>Is there a way to keep your classes separated in different folders without keeping them in a different package?</p>
  
  <p>I have a collection of about 40 classes, and I do want all of them to be in the same package, but I want a way to visually group them so it's a bit easier to navigate as this grows in size.</p>
  
  <p>Is there a way to do this with IntelliJ? In Java in general?</p>
  
  <p>The reason I don't want sub-packages is as follows:</p>
  
  <p><code>Foo</code> in package <code>Foo</code>:</p>
  
  <pre><code>package Foo;
  public class Foo {
      public static void main(String[] args) {
          Bar.FooBar(); //&lt;--compile error
      }
  }
  </code></pre>
  
  <p>and <code>Bar</code> in package <code>Foo.Bar</code>:</p>
  
  <pre><code>package Foo.Bar;
  
  public class Bar {
      static void FooBar() {}
  }
  </code></pre>