String (PsiElement element) { PsiTypeElement typeElement = PsiTreeUtil.getChildOfType(element, PsiTypeElement.class); PsiType type = typeElement != null ? typeElement.getType() : element instanceof PsiVariable ? ((PsiVariable)element).getType() : null; return getClassName(type); }