def METHOD_NAME(selectors, transform_func):
    if selectors is None:
        return None
    if not isinstance(selectors, list):
        return selectors
    for selector in selectors:
        if not isinstance(selector, dict):
            continue
        if not selector.get("type") == "TextQuoteSelector":
            continue
        if "prefix" in selector:
            selector["prefix"] = transform_func(selector["prefix"])
        if "exact" in selector:
            selector["exact"] = transform_func(selector["exact"])
        if "suffix" in selector:
            selector["suffix"] = transform_func(selector["suffix"])
    return selectors