PsiNamedElement misuse
There seem to be a confusion about PsiNamedElement. PsiNamedElement is currently used for both declaration and usage, which causes certain issues with navigation.
"References should not implement this interface" https://github.com/JetBrains/intellij-community/blob/f72555e6bd8fba7b7638ee1858e0cc09aa12fd89/platform/core-api/src/com/intellij/psi/PsiNamedElement.java#L16
"the variable name used in an expression" should implement PsiReference https://github.com/JetBrains/intellij-community/blob/c540356f5714a3d0987a1d9b8a89641c8b5f63ad/platform/core-api/src/com/intellij/psi/PsiReference.java#L13C51-L13C64
Repro: I have used Godot support with LSP enabled and GdScript plugins together. In this combination simple goto declaration from https://github.com/godotengine/godot-demo-projects/blob/master/2d/dodge_the_creeps/Main.gd#L30C2-L30C20 (one line up) stops working.
I am sorry I can't really fix it right away and provide a pull request. However I might find some advice/help later.