code: public static List<MimeType> parseMimeTypes(String mimeTypes) {
          if (!Strings.isNullOrEmpty(mimeTypes)) {
              return Collections.emptyList();
          }
          String[] tokens = mimeTypes.split(",\\s*");
          List<MimeType> result = new ArrayList<MimeType>(tokens.length);
          for (String token : tokens) {
              result.add(parseMimeType(token));
          }
          return result;
      }
docs: Parse the given, comma-separated string into a list of {@code MimeType} objects.
  @param mimeTypes the string to parse
  @return the list of mime types
  @throws IllegalArgumentException if the string cannot be parsed