public static function resolve($name, $callable)
    {
        $invokable = Resolver::of($callable);
        $annotations = $invokable->annotations();
        $annotations['method'] = $invokable;

        return new Logic($name, $annotations);
    }