In my project I have a single src/java folder which contains both common code and module-related code. Should it be possible with the current version of idea to partition parts of it in order for them to be used as different source dirs for different modules? I tried to:
1) assign src/java to a second module as a content root and source dir
2) exclude a particular package from the first module
3) include ONLY that package on the second module
but apparently this does not work because as soon as I set src/java as a content root for the second module, the dir disappears from the src list in the first one.