[java, spring] Proper navigation element for LightRecordConstructorParameter

GitOrigin-RevId: 410c0a37b970ef0381bd41489ec229680396b247
This commit is contained in:
Nicolay Mitropolsky
2021-10-26 11:28:35 +00:00
committed by intellij-monorepo-bot
parent 124b7603bd
commit 1a11b3b66e
@@ -116,6 +116,13 @@ public class LightRecordCanonicalConstructor extends LightMethod implements Synt
};
}
@Override
public @NotNull PsiElement getNavigationElement() {
PsiRecordComponent recordComponent = getRecordComponent();
if (recordComponent != null) return recordComponent;
return super.getNavigationElement();
}
@Override
public PsiElement getParent() {
return myWrapper;