src/Base/AnnotationsReader.php
public function getMethodExact($method, $annotationClass, $class = null, $refresh = false)
    {
        $annotations = $this->getMethod($method, $class, $refresh);
        foreach ($annotations as $annotation) {
            if ($annotation instanceof $annotationClass) {
                return $annotation;
            }
        }
        return null;
    }
public function getMethodExact($method, $annotationClass, $class = null, $refresh = false)
    {
        $annotations = $this->getMethod($method, $class, $refresh);
        foreach ($annotations as $annotation) {
            if ($annotation instanceof $annotationClass) {
                return $annotation;
            }
        }
        return null;
    }
Get method annotation by its class|interface name
@param string|\ReflectionMethod $method
@param string|object            $annotationClass
@param string|object|null       $class
@param bool                     $refresh
@return object|null