protected function getMiddleware(EndpointCollection $endpoints) { return $this->extractFromEndpoints($endpoints, 'middleware'); }