IType[] types = hierarchy.getAllTypes(); for (int i = 0; i < types.length; i++) { IMethod[] methods = types[i].getMethods(); for (int j = 0; j < methods.length; j++) { map.put(createSignatureKey(methods[j]), methods[j]); }
addMethodsToMapping(map, type); for (int i = 0; i < superTypes.length; i++) { addMethodsToMapping(map, superTypes[i]);
	private static IMethod[] resolveMethodsHierarchy(IType type) throws JavaModelException {		HashMap map = new HashMap();		ITypeHierarchy hierarchy = type.newSupertypeHierarchy(null);		IType[] types = hierarchy.getAllTypes();		for (int i = 0; i < types.length; i++) {			IMethod[] methods = types[i].getMethods();			for (int j = 0; j < methods.length; j++) {				map.put(createSignatureKey(methods[j]), methods[j]);			}		}		ArrayList list = new ArrayList();		list.addAll(map.values());		IMethod[] methods = new IMethod[list.size()];		for (int i = 0; i < methods.length; i++) {			methods[i] = (IMethod) list.get(i);		}		return methods;	}