code: public static Iterator iterator(Object list)
      {
          if (list==null)
              return Collections.EMPTY_LIST.iterator();
          if (list instanceof List)
              return ((List)list).iterator();
          return getList(list).iterator();
      }
docs: /* ------------------------------------------------------------