public static IMethod findMethod(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 IMethod findMethod(IMethodBinding method, IJavaProject scope) throws JavaModelException { IType type= findType(method.getDeclaringClass(), scope); if (type == null) return null; return findMethod(method, type);
	public static IMethod findMethod(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;	}			