PsiMethod (PsiMethod method) { final PsiElement element = method.getNavigationElement(); if (element instanceof PsiMethod && !((PsiMethod)element).getParameterList().isEmpty()) { return (PsiMethod)element; } else { return method; } }