def METHOD_NAME(self, component: Component, request: Request) -> None:
    """
    Mutate the component in place for the given request context.
    """
    # if there is no plugin registered for the component, return the input
    if (component_type := component["type"]) not in self:
        return
    # invoke plugin if exists
    rewriter = self[component_type].rewrite_for_request
    if rewriter is None:
        return
    rewriter(component, request)