String (PsiElement element) { if (element instanceof PsiClass) { return ((PsiClass)element).getQualifiedName(); } if (element instanceof PsiMethod && ((PsiMethod)element).isConstructor()) { PsiClass aClass = ((PsiMethod)element).getContainingClass(); if (aClass != null) { return aClass.getQualifiedName(); } } return null; }