private static <T> Collection<T> copy(Collection<T> collection) {
        if (collection == null) {
            return Collections.emptySet();
        }
        return new ArrayList<>(collection);
    }
Base implementation of {@link NodeMap} query methods.
common/src/main/java/me/lucko/luckperms/common/model/nodemap/NodeMapBase.java