docs: def matchCollapsedState( self ):
          """
          Matches the collapsed state for this groupbox.
          """
          collapsed = not self.isChecked()
          if self._inverted:
              collapsed = not collapsed
          
          if ( not self.isCollapsible() or not collapsed ):
              for child in self.children():
                  if ( not isinstance(child, QWidget) ):
                      continue
                  
                  child.show()
              
              self.setMaximumHeight(MAX_INT)
              self.adjustSize()
              
              if ( self.parent() ):
                  self.parent().adjustSize()
          else:
              self.setMaximumHeight(self.collapsedHeight())
              
              for child in self.children():
                  if ( not isinstance(child, QWidget) ):
                      continue
                  
                  child.hide()