private function loadMethodLevelAnnotations(object $service): AnnotationCollection
    {
        return $this->annotationReader
            ->extract(\get_class($service))
            ->filter(
                static function(Annotation $annotation): ?Annotation
                {
                    if ($annotation->annotationObject instanceof ServicesAnnotationsMarker)
                    {
                        return $annotation;
                    }

                    return null;
                }
            )
            ->methodLevelAnnotations();
    }
private function loadMethodLevelAnnotations(object $service): AnnotationCollection
    {
        return $this->annotationReader
            ->extract(\get_class($service))
            ->filter(
                static function(Annotation $annotation): ?Annotation
                {
                    if ($annotation->annotationObject instanceof ServicesAnnotationsMarker)
                    {
                        return $annotation;
                    }

                    return null;
                }
            )
            ->methodLevelAnnotations();
    }
private function loadMethodLevelAnnotations ( object $ service ) : AnnotationCollection { return $ this -> annotationReader -> extract ( \ get_class ( $ service ) ) -> filter ( static function ( Annotation $ annotation ) : ? Annotation { if ( $ annotation -> annotationObject instanceof ServicesAnnotationsMarker ) { return $ annotation ; } return null ; } ) -> methodLevelAnnotations ( ) ; }
Load a list of annotations for message handlers.

@param object $service

@throws \ServiceBus\AnnotationsReader\Exceptions\ParseAnnotationFailed

@return AnnotationCollection
Load a list of annotations for message handlers .