def METHOD_NAME(
    self, doc: Document, from_file, initial_par: str | list[str], settings
):
    if from_file is not None:
        with open(from_file, encoding="utf-8") as f:
            doc.add_text(f.read())
    elif initial_par is not None:
        if isinstance(initial_par, str):
            doc.add_text(initial_par)
        elif isinstance(initial_par, list):
            for p in initial_par:
                doc.add_text(p)
    if settings is not None:
        doc.set_settings(settings)