PsiElement () { PsiElement parent = getParent(); if (parent instanceof PsiParameterList) { PsiElement gParent = parent.getParent(); if (gParent instanceof PsiMethod) { PsiElement originalMethod = gParent.getOriginalElement(); if (originalMethod instanceof PsiMethod && originalMethod != gParent) { int index = ((PsiParameterList)parent).getParameterIndex(this); PsiParameter[] originalParameters = ((PsiMethod)originalMethod).getParameterList().getParameters(); if (index < originalParameters.length) { return originalParameters[index]; } } } } return this; }