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'");
    }
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'");
    }
Returns method class if request method was found in collection

@param ClassInterface $class         the application class
@param string         $requestMethod the request method

@return MethodInterface
@throws Exceptions\ExtDirectException