$invert = Html::rawElement( 'label', [
            'class' => 'mw-input-with-label', 'title' => $this->msg( 'tooltip-invert' )->text(),
        ], Html::element( 'input', [
            'type' => 'checkbox', 'name' => 'invert', 'value' => '1', 'checked' => $opts['invert'],
        ] ) . ' ' . $this->msg( 'invert' )->escaped() );