I've written Lexer & Parser for a custom language, following the Custom Language Support Tutorial . I'd now like to implement clickable references for identifiers in my language, but the tutorial only explains ReferenceContributors , which I'd only need for references from other languages to mine, according to this forum post :
> In your custom language, there is usually no need to go through ReferenceProvidersRegistry to provide references for an element. Instead, you can put all your logic directly into the getReferences() method of your PsiElement.
How to implement getReference() I'm missing some understandable example code, tough.