@Override
        public void supplyBindings(Script script, BindingsBuilder bindings) {
            bindings.put("newArrayList", ARRAY_LIST);
            bindings.put("newLinkedList", LINKED_LIST);
            bindings.put("newHashSet", HASH_SET);
            bindings.put("newHashMap", HASH_MAP);
            bindings.put("newCopyOnWriteArrayList", COPY_ON_WRITE_ARRAY_LIST);
            bindings.put("newConcurrentHashSet", CONCURRENT_HASH_SET);
            bindings.put("newConcurrentHashMap", CONCURRENT_HASH_MAP);
            bindings.put("listOf", LIST_OF);
            bindings.put("setOf", SET_OF);
            bindings.put("immutableListOf", IMMUTABLE_LIST_OF);
            bindings.put("immutableSetOf", IMMUTABLE_SET_OF);
            bindings.put("parseUuid", PARSE_UUID);
        }
Some misc functions to help with using Java collections in JS
helper-js/src/main/java/me/lucko/helper/js/HelperJsPlugin.java