String (@Nullable PsiClass clazz) { if (clazz == null) { return CommonClassNames.JAVA_LANG_OBJECT; } String fqn = clazz.getQualifiedName(); if (fqn != null) { return fqn; } String name = clazz.getName(); if (name != null) { return name; } return CommonClassNames.JAVA_LANG_OBJECT; }