code: private List<EndpointInterceptor> adaptInterceptors(List<Object> interceptors) {
          List<EndpointInterceptor> endpointInterceptors = new ArrayList<EndpointInterceptor>();
  
          if (interceptors != null) {
              for (Object interceptor : interceptors) {
                  if (interceptor instanceof EndpointInterceptor) {
                      endpointInterceptors.add((EndpointInterceptor) interceptor);
                  }
              }
          }
  
          return endpointInterceptors;
      }
docs: Adapts object list to endpoint interceptors.
  @param interceptors
  @return