in reply to Is it a pragma or a module?

Since there aren't many pragmas (see the full list) you might be able to just hardcode the list in.

(Actually, not sure that list is complete, because it doesn't contain 'warnings', but you can probably find a list fairly easily).