docs: public <T> T getState(HttpConnectionInterceptor interceptor, String stateName, Class<T>
              stateType) {
          Map<String, Object> state = interceptorStates.get(interceptor);
          if (state != null) {
              return stateType.cast(state.get(stateName));
          } else {
              return null;
          }
      }