public static IMethod find(IMethodBinding method, IType type) throws JavaModelException { IMethod[] candidates= type.getMethods(); for (int i= 0; i < candidates.length; i++) { IMethod candidate= candidates[i]; if (candidate.getElementName().equals(method.getName()) && sameParameters(method, candidate)) { return candidate; } } return null;
public static IField find(IVariableBinding field, IJavaProject in) throws JavaModelException { Assert.isTrue(field.isField()); ITypeBinding declaringClassBinding = field.getDeclaringClass(); if (declaringClassBinding == null) return null; IType declaringClass = find(declaringClassBinding, in); if (declaringClass == null) return null; IField foundField= declaringClass.getField(field.getName()); if (! foundField.exists()) return null; return foundField;
	public static IMethod find(IMethodBinding method, IType type) throws JavaModelException {		IMethod[] candidates= type.getMethods();		for (int i= 0; i < candidates.length; i++) {			IMethod candidate= candidates[i];			if (candidate.getElementName().equals(method.getName()) && sameParameters(method, candidate)) {				return candidate;			}		}		return null;	}