Bug 89513 [code manipulation] generate delegate methods: inconsistent for generic types
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/AddDelegateMethodsAction.java
public Image getImage(Object element) {
			if (element instanceof IBinding[]) {
				return super.getImage((((IBinding[]) element)[1]));
			} else if (element instanceof IVariableBinding) {
				return super.getImage(element);
			}
			return null;
		}
		public String getText(Object element) {
			if (element instanceof IBinding[]) {
				return super.getText((((IBinding[]) element)[1]));
			} else if (element instanceof IVariableBinding) {
				return super.getText(element);
			}
			return null;
		}
	}
	private static class AddDelegateMethodsViewerSorter extends ViewerSorter {
		public int category(Object element) {
			if (element instanceof IBinding[])
				return 0;
			return 1;
		}
		public int compare(Viewer viewer, Object object1, Object object2) {
			String first= ""; 
			String second= ""; 
			if (object1 instanceof IBinding[])
				first= Bindings.asString(((IBinding[]) object1)[1]);
			else if (object1 instanceof IVariableBinding)
				first= ((IBinding) object1).getName();