String (PsiClass psiClass, @Nullable PsiElement context) { if (context != null && psiClass != null) { psiClass = GenerationUtil.findAccessibleSuperClass(context, psiClass); } if (psiClass == null) { return CommonClassNames.JAVA_LANG_OBJECT; } final String name = psiClass.getQualifiedName(); if (name != null) return name; return psiClass.getName(); }