checkForNull(methodName, "method name");
checkForNull(methodSignature, "method signature");
MethodDeclaration method = searchMethodDeclaration(type.getAST(), type.getMethods(), methodName, methodSignature);
if (method == null) {
throw new MethodDeclarationNotFoundException(type, methodName, methodSignature);
}
return method;
}