You can set HIDE_SCOPE_NAMES to YES, but this will probably also separate FirstModule and SecondModule.
An alternative is to create a simple input filter (see INPUT_FILTER in the doxygen configuration file), which replaces "package foo.bar.project.something.AModule;" by "batch AModule"; Then you have complete control over how much is deprived.
source share