question: private void fetchEmotes ( String room , Set < Integer > emotesets ) { Set < Emoticon > result = new HashSet < > ( ) ; for ( int set : emotesets ) { Set < Emoticon > fetched = fetchEmoteSet ( room , set ) ; for ( Emoticon emoteToAdd : fetched ) { for ( Emoticon emote : result ) { if ( emote . equals ( emoteToAdd ) ) { emote . addInfos ( emoteToAdd . getInfos ( ) ) ; break ; } } result . add ( emoteToAdd ) ; } } EmoticonUpdate update = new EmoticonUpdate ( result , Emoticon . Type . FFZ , Emoticon . SubType . EVENT , room ) ; listener . channelEmoticonsReceived ( update ) ; }
target:  Fetches all emotes of the given emotesets, useable in the given room and sends them to the listener (removing previous EVENT emotes in that room).