public boolean isAuthorized(Sender sender, HolderType type) {
        switch (type) {
            case USER:
                return this.userPermission.isAuthorized(sender);
            case GROUP:
                return this.groupPermission.isAuthorized(sender);
            default:
                throw new AssertionError(type);
        }
    }
Predicate to test if the argument length given is invalid
common/src/main/java/me/lucko/luckperms/common/command/abstraction/GenericChildCommand.java