I'd like to suppress some inspections of mine when the inspected part of the code
contains compile errors.
How can I check that?
Somewhere I saw code that uses a visitor and sets a flag in visitErrorElement.
The problem is that not every compile error seems to result in PsiErrorElements in the code,
e.g. "String s = 22;"