code: public static String toListString(Collection self, int maxSize) {
          return (self == null) ? "null" : InvokerHelper.toListString(self, maxSize);
      }
docs: Returns the string representation of the given list.  The string
  displays the contents of the list, similar to a list literal, i.e.
  <code>[1, 2, a]</code>.
  
  @param self a Collection
  @param maxSize stop after approximately this many characters and append '...'
  @return the string representation
  @since 1.7.3