Could you use the "new" error pattern?

i.e. put `//~ ERROR found module name used as a type` on the line where the error should occur, and remove this.