IDEA-108385: Allow to specify a rule which controls namespace attribute ...

Trying to fix this issue:
http://youtrack.jetbrains.com/issue/IDEA-108385

It's my first time looking at IntelliJ code so I'm not sure if this is the correct way to fix this and/or what implications it might have on the rest of the code.

I've compiled a version for me and so far seems to be working properly and fix my issue.