We are using a certain persistence framework where a reference to another type is not done via a basic member but via something like this:
static Reference<TargetType> target = Reference.create(TargetType.class);
I would love to have this supported, at least for the diagram generation (it should show a reference to TargetType). I therefore started writing a plugin and I thought that "Reference Contributor" is the way to go. However I noticed that I don't even see the PsiField and PsiClass in my PsiReferenceContributor, although I registered it for PsiElement. Is that because Fields are already handled? Is this the way to go at all or should I try something different?