docs: public static long[] toLongArray(Collection<Long> collection) {
          long[] collectionArray = new long[collection.size()];
          int index = 0;
          for (Long item : collection) {
              collectionArray[index++] = item;
          }
          return collectionArray;
      }