String (@NotNull PsiClass aClass) { @NlsSafe String qualifiedName = aClass.getQualifiedName(); if (qualifiedName != null) { return qualifiedName; } @NlsSafe String name = aClass.getName(); if (name != null) { return name; } return JavaRefactoringBundle.message("anonymous.class.text"); }