public static final Set<Emoticon> filterByType(Set<Emoticon> emotes,Emoticon.Type type){
  Set<Emoticon> filtered=new HashSet<>();
  for (  Emoticon emote : emotes) {
    if (emote.type == type) {
      filtered.add(emote);
    }
  }
  return filtered;
}

public static final Set < Emoticon > filterByType ( Set < Emoticon > emotes , Emoticon . Type type ) { Set < Emoticon > filtered = new HashSet < > ( ) ; for ( Emoticon emote : emotes ) { if ( emote . type == type ) { filtered . add ( emote ) ; } } return filtered ; }
creates a new set that only contains the subset of the given emotes that are of the given type ( e . g . twitch , ffz or bttv ) .
