docs: public static <T> List<T> immutableListView(List<T> list) {
          if (list instanceof ImmutableList<?>) {
              return list;
          }
          if (list instanceof ArrayList<?>) {
              ArrayList.class.cast(list).trimToSize();
          }
          return Collections.unmodifiableList(list);
      }