As an experiment I wrote a CustomReferenceConverter implementation for IDEADEV-13628.
The code indeed works, but I still have some questions:
1) It seems that returning a PsiField from getVariants() does not work,
in contrast to the JavaDoc of getVariants().
Returning regular LookupValueFactory.createXxx objects works, but it would
be nicer to have Ctrl-Q in completion list.
Is there a way to achieve this? Why are PsiFields not accepted as return
2) Unresolved references are marked red, even though I initialize the anonymous
PsiReferenceBase subclass to soft=true.
Is there a way to disable the 'red marking' of unresolved references?