private static boolean allowInsert(TreeNode node) {
        // level 0    =>  no limit
        // level 1/2  =>  up to 500
        // level 3+   =>  up to 100

        if (node.level == 0) {
            return true;
        } else if (node.level <= 2) {
            return node.getChildrenSize() < 500;
        } else {
            return node.getChildrenSize() < 100;
        }
    }
Represents one "branch" or "level" of the node tree
common/src/main/java/me/lucko/luckperms/common/treeview/TreeNode.java