public static JsonArrayBuilder array(JsonArray array, boolean copy) {
        Objects.requireNonNull(array, "array");

        if (copy) {
            return array().addAll(array, true);
        } else {
            return new JsonArrayBuilderImpl(array);
        }
    }
Creates a new array builder

<p>If copy is not true, the passed array will be mutated by the builder methods.</p>

@param array the array to base the new builder upon
@param copy if the array should be deep copied, or just referenced.
@return a new builder
helper/src/main/java/me/lucko/helper/gson/JsonBuilder.java