def METHOD_NAME(self):
    dialog_buttons = QDialogButtonBox(QDialogButtonBox.Ok)  # type: ignore
    dialog_buttons.accepted.connect(self.accept)
    self._copy_all_button = dialog_buttons.addButton(
        "Copy all", QDialogButtonBox.ActionRole  # type: ignore
    )
    self._copy_all_button.clicked.connect(self._copy_all)
    self._follow_button = dialog_buttons.addButton(
        "Follow", QDialogButtonBox.ActionRole  # type: ignore
    )
    self._follow_button.setCheckable(True)
    self._follow_button.toggled.connect(self._enable_follow_mode)
    self._enable_follow_mode(self._follow_mode)
    layout = QVBoxLayout(self)
    layout.addWidget(self._view)
    layout.addWidget(dialog_buttons)