I develop a Robot Framework plugin for Idea.
I am now adding support for "Jump to definition" for Keywords defined in imported Python files.
In the implementation of the PsiReferenceProvider.getReferencesByElement, I am currently able to find the relative PyFunction, but I cannot get any reference from it.
I have tried many methods:
but all of them return null or an empty collection.
The functions/methods are found with calls to the Python indices (e.g. PyClassNameIndex.findClass(qName, currentPsiElem.getProject))
What am I doing wrong?