def METHOD_NAME(self, widget, label):
    row = self.content_layout.rowCount()
    if not self._any_children_has_label:
        self.content_layout.addWidget(widget, row, 0, 1, 1)
        spacer_widget = SpacerWidget(self)
        self.content_layout.addWidget(spacer_widget, row, 1, 1, 1)
    else:
        if label:
            label_widget = GridLabelWidget(label, widget)
            label_widget.input_field = widget
            widget.label_widget = label_widget
            self.content_layout.addWidget(
                label_widget, row, 0, 1, 1,
                alignment=QtCore.Qt.AlignRight | QtCore.Qt.AlignTop
            )
        self.content_layout.addWidget(widget, row, 1, 1, 1)
        spacer_widget = SpacerWidget(self)
        self.content_layout.addWidget(spacer_widget, row, 2, 1, 1)