PsiIdentifier (final PsiMember member) { if (member instanceof PsiField) { return ((PsiField)member).getNameIdentifier(); } if (member instanceof PsiMethod) { return ((PsiMethod)member).getNameIdentifier(); } return null; }