void (int... states) { for (int state : states) { assert state != getInitialState(); assert !stateStack.isEmpty() : stateStack; int previous = stateStack.pop(); assert previous == state : "States does not match: previous=" + previous + ", expected=" + state; } yybegin(stateStack.isEmpty() ? getInitialState() : stateStack.peek()); }