def METHOD_NAME(self, path: Path) -> None:
    pyproject = PyProjectTOML(path / "pyproject.toml")
    content = self.generate_poetry_content()
    for section, item in content.items():
        pyproject.data.append(section, item)
    pyproject.save()