private @Nullable List<E> asRandomAccess() {
    //noinspection CastConflictsWithInstanceof,unchecked
    return content instanceof RandomAccess ? (List<E>)content : null;
  }
private @Nullable List<E> asRandomAccess()