public static Set<Emoticon> parseEmoticons(JSONArray emotes,String streamRestriction,String info,Emoticon.SubType subType){
  Set<Emoticon> result=new HashSet<>();
  if (emotes != null) {
    for (    Object emote : emotes) {
      if (emote != null && emote instanceof JSONObject) {
        Emoticon createdEmote=parseEmote((JSONObject)emote,streamRestriction,info,subType);
        if (createdEmote != null) {
          result.add(createdEmote);
        }
      }
    }
  }
  return result;
}

public static Set < Emoticon > parseEmoticons ( JSONArray emotes , String streamRestriction , String info , Emoticon . SubType subType ) { Set < Emoticon > result = new HashSet < > ( ) ; if ( emotes != null ) { for ( Object emote : emotes ) { if ( emote != null && emote instanceof JSONObject ) { Emoticon createdEmote = parseEmote ( ( JSONObject ) emote , streamRestriction , info , subType ) ; if ( createdEmote != null ) { result . add ( createdEmote ) ; } } } } return result ; }
parses the list of emotes .
