else if (owner instanceof PsiParameter) {
final PsiMethod psiMethod = PsiTreeUtil.getParentOfType(owner, PsiMethod.class);
if (psiMethod != null) {
return builder.toString() + " " + formatMethod(psiMethod, PsiSubstitutor.EMPTY,
SHOW_NAME | SHOW_FQ_NAME | SHOW_TYPE | SHOW_PARAMETERS | SHOW_FQ_CLASS_NAMES,
<BUG>SHOW_NAME | SHOW_TYPE | SHOW_FQ_CLASS_NAMES) + " " + formatVariable(
(PsiVariable)owner, SHOW_NAME, PsiSubstitutor.EMPTY);
}</BUG>
}
}

else if (owner instanceof PsiParameter) {
final PsiMethod psiMethod = PsiTreeUtil.getParentOfType(owner, PsiMethod.class);
if (psiMethod != null) {
return builder.toString() + " " + formatMethod(psiMethod, PsiSubstitutor.EMPTY,
SHOW_NAME | SHOW_FQ_NAME | SHOW_TYPE | SHOW_PARAMETERS | SHOW_FQ_CLASS_NAMES,
showParamName ? (SHOW_NAME | SHOW_TYPE | SHOW_FQ_CLASS_NAMES) : (SHOW_TYPE | SHOW_FQ_CLASS_NAMES)) + " " +
(showParamName ? formatVariable((PsiVariable)owner, SHOW_NAME, PsiSubstitutor.EMPTY) : psiMethod.getParameterList().getParameterIndex((PsiParameter)owner));
}
}
}
