protected function getMethod(MessageInterface $message, string $prefix = null): Closure
    {
        $name = lcfirst($prefix . $message->getPayloadType()->getName());
        if (method_exists($this, $name) === false) {
            throw new MethodNotFound($message);
        }

        return (new ReflectionMethod($this, $name))->getClosure($this);
    }