protected function filterContractAnnotation(array $annotations)
{
$contractAnnotations = [];
foreach ($annotations as $annotation) {
if ($annotation instanceof $this->expectedAnnotationType) {
$contractAnnotations[] = $annotation;
}
}
return $contractAnnotations;
}