#NEWLINE# def _hidden_group_for( self , group ) : #NEWLINE# #INDENT# ' Finds the first group with any hidden items (if any).\n        ' #NEWLINE# while True : #NEWLINE# #INDENT# if ( self is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( len ( group . contents ) > len ( group . visible_contents ) ) : #NEWLINE# #INDENT# return group #NEWLINE# #UNINDENT# group = group . parent