/**
  * Uses method and type-level @{@link RequestMapping} annotations to create
  * the RequestMappingInfo.
  *
  * @return RequestMappingInfo the created RequestMappingInfo, or {@code null} if the method
  * does not have a {@code @RequestMapping} annotation.
  *
  * @see #getCustomMethodCondition(Method)
  * @see #getCustomTypeCondition(Class)
  * @Override
  */
 protected function getMappingForMethod($method, $handlerType)
 {
     /** @var $info RequestMappingInfo */
     $info = null;
     /** @var $methodAnnotation RequestMapping */
     $methodAnnotation = AnnotationUtils::findAnnotation($method, RequestMapping::class);
     if ($methodAnnotation != null) {
         /** @var $methodCondition RequestCondition */
         $methodCondition = getCustomMethodCondition($method);
         $info = createRequestMappingInfo($methodAnnotation, $methodCondition);
         /** @var $typeAnnotation RequestMapping */
         $typeAnnotation = AnnotationUtils::findAnnotation($handlerType, RequestMapping::class);
         if ($typeAnnotation != null) {
             /** @var $typeCondition RequestCondition */
             $typeCondition = getCustomTypeCondition($handlerType);
             $info = createRequestMappingInfo($typeAnnotation, $typeCondition)->combine($info);
         }
     }
     return $info;
 }