I'm trying to create a new severity for my inspection.
Here is the code:
It creates a new severity, I can see it under Errors tab in Settings. I can even modify colors and all that. But if I open a file, I get this stack trace:
What am I doing wrong? What is the correct way to register a new severity?