protected function getAnnotationMethodForMethod(ClassInterface $class, $requestMethod)
    {
        /** @var MethodInterface $method */
        foreach ($class->getMethods() as $method) {
            if ($method->getAnnotatedName() === $requestMethod) {
                return $method;
            }
        }

        throw new ExtDirectException("extjs method name '{$requestMethod}' does not exist'");
    }