String (PsiElement element) { if (element instanceof PsiClass) { return ((PsiClass)element).getQualifiedName(); } else if (element instanceof PsiPackage) { return ((PsiPackage)element).getQualifiedName(); } else if (element instanceof PsiClassOwner) { return ((PsiClassOwner)element).getName(); } else { LOG.error("unknown element: " + element); return null; } }