def METHOD_NAME(fn):
    # type: (Callable[..., T]) -> Callable[..., T]
    @wraps(fn)
    def decorated(view, *args, **kwargs):
        # type: (sublime.View, Any, Any) -> Optional[T]
        return run_as_text_command(fn, view, *args, **kwargs)
    return decorated  # type: ignore[return-value]