I can't figure out how to enumerate the kinds of annotations applied to a PsiElement in a Java file. Specifically I'd like to inspect for non-syntax errors like `Cannot resolve symbol`, messages relating to incorrect method parameters, etc.
I've had success detecting syntax errors (missing parenthesis, double quote, semicolon, etc.) by detecting an instanceof com.intellij.psi.PsiErrorElement, but the other Java language-specific error annotations have eluded my grasp thusfar!
Please help point me in the right direction. Thanks so much!