I've noticed something recently as I was trying to clean up some code. I see that when I create a new IntelliJ project based off of an existing pom file, some old (no longer referenced by the pom) projects are added to the IntelliJ project structure. The code still exists in our cvs repository (and thus under my source root dir), but the pom of that sub-project is not referenced by any other pom file. It wouldn't be such a big deal, but I've recently started using Inspection builds in TeamCity. Errors in those old (no longer maintained) pom files keep showing up in our Inspection report. I don't want to have to maintain those old files (I can't remove them from source right now) just to get a clean Inspection build.
So my question is why are those still picked up by IntelliJ and added to the project structure? Or better yet, what can I do to specifically exclude/hide them from IntelliJ?