String () { String name = myClass.getQualifiedName(); if (name == null) { name = myClass.getName(); } if (name == null && myClass instanceof PsiAnonymousClass) { PsiClass baseClass = ((PsiAnonymousClass)myClass).getBaseClassType().resolve(); name = "anonymous " + (baseClass == null ? ((PsiAnonymousClass)myClass).getBaseClassReference().getReferenceName() : new JavaClassDef(baseClass)); } return String.valueOf(name); }