The Foldable Project View is a plugin for the IntelliJ-based IDEs that lets you fold files located in the root of your project.