private static @Nls String getClassText(@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");
  }
private static @Nls String getClassText(@NotNull PsiClass aClass)