String (PsiElement psiMember, @Nullable Location location) { if (psiMember instanceof PsiClass) { return ClassUtil.getJVMClassName((PsiClass)psiMember); } else if (psiMember instanceof PsiMember) { final PsiClass containingClass = location instanceof MethodLocation ? ((MethodLocation)location).getContainingClass() : location instanceof PsiMemberParameterizedLocation ? ((PsiMemberParameterizedLocation)location) .getContainingClass() : ((PsiMember)psiMember).getContainingClass(); assert containingClass != null; return ClassUtil.getJVMClassName(containingClass) + "," + getMethodPresentation((PsiMember)psiMember); } else if (psiMember instanceof PsiPackage) { return ((PsiPackage)psiMember).getQualifiedName() + ".*"; } return null; }