code: public ComponentFactory<T, E> toConfigure(BiConsumer<Context, Annotation> consumer) {
      return new ComponentFactory<>(this.annotationType, this.classElement, consumer, this.createFunction);
    }
docs: Adds more rules to the context by passing a consumer that will be invoked before creating the
  component.
  
  @param consumer the consumer to configure the context
  @return a new ComponentFactory