This is something that probably 100 people have done before, but I can't find it
on the forums or the wiki or anywhere else, and there's no documentation for
most of the API I think I need to use.
If I have a PsiElement (of my custom language, but this shouldn't matter), what
is a good way to resolve it to a PsiClass?