String (PsiElement resolved) { if (resolved instanceof PsiMember || resolved instanceof PsiNamedElement) { PsiClass clazz = ((PsiMember) resolved).getContainingClass(); if (clazz != null) { String qName = clazz.getQualifiedName(); if (qName != null) { return qName + "." + ((PsiNamedElement) resolved).getName(); } } } return null; }