I would like to implement the getRangeInElement Method of the PsiReference properly.
The problem is that the Reference is a Java Comment but it seems that comments can't be underlined, so no reference is found.
If I set the TextRange to something which can be underlined, like a variable or a classname, it works correctly.
I tried different ways but none helped.
Is it possible to set the TextRange of the reference element on a Java Comment?
Thanks in advance,