Bug 44737 JavaElementLabels broken for nested anonymous types
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.java
if (!pack.isDefaultPackage()) {
				getPackageFragmentLabel(pack, (flags & P_COMPRESSED), buf);
				buf.append('.');
			}
			IType declaringType= type.getDeclaringType();
			if (declaringType != null) {
				buf.append(JavaModelUtil.getTypeQualifiedName(declaringType));
				buf.append('.');
			}
		} else if (getFlag(flags, T_CONTAINER_QUALIFIED)) {
			IType declaringType= type.getDeclaringType();
			if (declaringType != null) {
				buf.append(JavaModelUtil.getTypeQualifiedName(declaringType));
				buf.append('.');
			}
		}
		
		String typeName= type.getElementName();
		if (typeName.length() == 0) { 
			try {
				String superclassName= Signature.getSimpleName(type.getSuperclassName());
				typeName= JavaUIMessages.getFormattedString("JavaElementLabels.anonym_type" , superclassName); 
			} catch (JavaModelException e) {
				
				typeName= JavaUIMessages.getString("JavaElementLabels.anonym"); 
			}
		}
		buf.append(typeName);