private Difference<Node> record(Difference<Node> result) {
        this.lock.lock();
        try {
            this.changes.mergeFrom(result);
        } finally {
            this.lock.unlock();
        }
        return result;
    }
A forwarding {@link NodeMap} that records all mutations and keeps them in a log.
common/src/main/java/me/lucko/luckperms/common/model/nodemap/RecordedNodeMap.java