Bug 44737 JavaElementLabels broken for nested anonymous types
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/JavaElementLabels.java
buf.append(Signature.getSimpleName(Signature.toString(types[i])));
					}
				}
			}
			
			if (getFlag(flags, M_APP_RETURNTYPE) && method.exists() && !method.isConstructor()) {
				buf.append(DECL_STRING);
				buf.append(Signature.getSimpleName(Signature.toString(method.getReturnType())));	
			}			
			
			
			if (getFlag(flags, M_POST_QUALIFIED)) {
				buf.append(CONCAT_STRING);
				getTypeLabel(method.getDeclaringType(), T_FULLY_QUALIFIED | (flags & P_COMPRESSED), buf);
			}			
			
		} catch (JavaModelException e) {
			JavaPlugin.log(e); 
		}
	}
	
	/**
	 * Appends the label for a field to a StringBuffer. Considers the F_* flags.
	 */	
	public static void getFieldLabel(IField field, int flags, StringBuffer buf) {
		try {
			if (getFlag(flags, F_PRE_TYPE_SIGNATURE) && field.exists()) {
				buf.append(Signature.toString(field.getTypeSignature()));
				buf.append(' ');
			}