docs: @SuppressWarnings("rawtypes")
      public static <T, B extends ThreadLocalBuilder<T>> T buildGeneric(
              final Class<? extends ThreadLocalBuilder> threadLocalBuilderClass,
              final Consumer<B> builderConsumer) {
  
          // Look-up the thread local builder's instance queue
          @SuppressWarnings("unchecked")
          final Class<? extends ThreadLocalBuilder<?>> genericThreadLocalBuilderClass =
                  (Class<? extends ThreadLocalBuilder<?>>) threadLocalBuilderClass;
          final Queue<ThreadLocalBuilder<?>> instanceQueue = THREAD_LOCAL_BUILDERS_BY_TYPE.get().computeIfAbsent(
                  genericThreadLocalBuilderClass,
                  key -> new LinkedList<>());
  
          // Pull an instance from the queue or create one if one does not exist
          @Nullable ThreadLocalBuilder<?> threadLocalBuilder = instanceQueue.poll();
          if (threadLocalBuilder == null) {
              threadLocalBuilder = instantiateBuilder(threadLocalBuilderClass);
          }
  
          // Reset the builder instance
          threadLocalBuilder.reset();
  
          try {
              // Consume the instance and build
              @SuppressWarnings("unchecked")
              final B castThreadLocalBuilder = (B) threadLocalBuilder;
              builderConsumer.accept(castThreadLocalBuilder);
              threadLocalBuilder._isThreadLocalBuild = true;
              return castThreadLocalBuilder.build();
          } finally {
              // Return the builder instance to the queue
              threadLocalBuilder._isThreadLocalBuild = false;
              instanceQueue.add(threadLocalBuilder);
          }
      }