My company's software build system, because language-heterogeneous, creates a "sandbox" system that's difficult to integrate into an IDEA project. Attempting to File -> New -> Module from existing sources to make module1 leads to main.iml and test.iml with main and test subdirectories in bold in the Project view. Of course, I expect module1 and module2 to be in bold after and I expect module1.iml and module2.iml.
project --root in IntelliJ
`-- component --will not have own source code; just subsumes multiple modules
+-- module1 -- cannot get IDEA to make this a module
| +-- pom.xml
+ `-- src (main/java, test/java, etc.)
`-- module2 -- cannot get IDEA to make this a module
`-- src (main/java, test/java, etc.)