public static Comparator<? super PermissionHolder> getFor(PermissionHolder origin) {
        if (origin.getType() == HolderType.USER) {
            return new InheritanceComparator((User) origin).reversed();
        }
        return NULL_ORIGIN;
    }
Determines the order of group inheritance in {@link PermissionHolder}.
common/src/main/java/me/lucko/luckperms/common/inheritance/InheritanceComparator.java