static L wrapArrayAsImmutableList(O array) { if (o == null) null; if (o cast O[]) ret wrapObjectArrayAsImmutableList(array); else ret wrapPrimitiveArrayAsImmutableList(array); }