code: public static MethodNode findMethod(ClassNode clazz, String name)
  	{
  		for (MethodNode method : clazz.methods)
  		{
  			if (method.name.equals(name))
  			{
  				return method;
  			}
  		}
  		return null;
  	}
docs: Finds the method with the given name. If multiple methods with the same name exist, the first one will be returned
  
  @param clazz the class
  @param name the method name to search for
  @return the first method with the given name or null if no such method is found