public Set<T> getChanges(ChangeType type) {
        Set<T> changes = new LinkedHashSet<>(this.changes.size());
        for (Change<T> change : this.changes) {
            if (change.type() == type) {
                changes.add(change.value());
            }
        }
        return changes;
    }
Gets the recorded changes of a given type

@param type the type of change
@return the changes
common/src/main/java/me/lucko/luckperms/common/util/Difference.java