def METHOD_NAME(
    parent: QtWidgets.QWidget, title: str, msg: str, checked: bool = False, check_text: str = ""
) -> tuple[bool, bool]:
    d = OptionalMessageDialog(parent, StyleQuestion, title, msg, checked=checked, check_text=check_text)
    d.exec()
    return d.was_accepted, d.theCheckBox.isChecked()