#NEWLINE# def __contains__( self , instance ) : #NEWLINE# #INDENT# iid = instance . get_state ( ) . iid #NEWLINE# return ( ( iid in self . _new ) or ( iid in self . _modified ) or ( iid in self . _deleted ) or ( instance in self . _structures ) )