code: private List<HandlerInterceptor> adaptInterceptors(List<Object> interceptors, ApplicationContext context) {
          List<HandlerInterceptor> handlerInterceptors = new ArrayList<HandlerInterceptor>();
  
          if (context.containsBean(LOGGING_INTERCEPTOR_BEAN_NAME)) {
              LoggingHandlerInterceptor loggingInterceptor = context.getBean(LOGGING_INTERCEPTOR_BEAN_NAME, LoggingHandlerInterceptor.class);
              handlerInterceptors.add(loggingInterceptor);
          }
  
          if (interceptors != null) {
              for (Object interceptor : interceptors) {
                  if (interceptor instanceof MappedInterceptor) {
                      handlerInterceptors.add(new MappedInterceptorAdapter((MappedInterceptor)interceptor,
                              new UrlPathHelper(), new AntPathMatcher()));
                  } else if (interceptor instanceof HandlerInterceptor) {
                      handlerInterceptors.add((HandlerInterceptor) interceptor);
                  } else if (interceptor instanceof WebRequestInterceptor) {
                      handlerInterceptors.add(new WebRequestHandlerInterceptorAdapter((WebRequestInterceptor) interceptor));
                  } else {
                      log.warn("Unsupported interceptor type: {}", interceptor.getClass().getName());
                  }
              }
          }
  
          return handlerInterceptors;
      }
docs: Adapts object list to handler interceptors.
  @param interceptors
  @param context
  @return