code: private void swapRequestInterceptor(Class<? extends Interceptor> target, Interceptor interceptor)
      {
          List<Interceptor> list = this.getRequestInterceptors();
  
          for(Interceptor object : list) {
              if(object.getClass() == target) {
                  list.set(list.indexOf(object),interceptor);
              }
          }
  
          this.setRequestInterceptors(list);
      }
docs: Swap one interceptor with new one
  @param target subclass of interceptor
  @param interceptor new interceptor which will be used instead
  TODO do we need to pay attention to safe threading here (expected answer: no)