code: public static Set<String> commaDelimitedListToSet(String str) {
          Set<String> set = new LinkedHashSet<String>();
          String[] tokens = commaDelimitedListToStringArray(str);
          for (String token : tokens) {
              set.add(token);
          }
          return set;
      }
docs: Convert a comma delimited list (e.g., a row from a CSV file) into a set. <p>Note that this will suppress
  duplicates, and as of 4.2, the elements in the returned set will preserve the original order in a {@link
  LinkedHashSet}.
  
  @param str the input {@code String}.
  
  @return a set of {@code String} entries in the list.
  
  @see #removeDuplicateStrings(String[])