def METHOD_NAME(self, to_be_redirected: Mapping[str, str]):
    """Create actual redirect file for each pair in passed mapping of \
    docnames to targets."""
    for doc, target in to_be_redirected.items():
        redirect_file_abs = Path(
            self.app.outdir).joinpath(doc, "index.html")
        redirect_file_rel = redirect_file_abs.relative_to(self.app.outdir)
        if redirect_file_abs.exists():
            logger.info(f"Creating redirect file '{redirect_file_rel}' "
                        f"pointing to '{target}' that replaces "
                        f"document '{doc}'.")
        else:
            logger.info(f"Creating redirect file '{redirect_file_rel}' "
                        f"pointing to '{target}'.")
        self._create_redirect_file(redirect_file_abs, target)