I started out with ProjectX and importent as its root content all files under /home/myprojects/ProjectX into I guess its own module.
Then I added bunch of modules to ProjectX with their own root conent having their own src tree.
Then I removed the ProjectX module.
Now some of the outputs of my modules (when run individualy) still output conent to ProjectX directory. I suspect because IntelliJ think ProjectX is the project directory.
The "Path" config window is configured to output the module results into its own module directory.