protected boolean shouldInsertSemicolon(int prevpos, int prevtoken) {
	Integer position = new Integer(prevpos);
	if (this.errorAction.contains(position)) {
		// should not insert a semi-colon at a location that has already be tried
		return false;
	}
	this.errorAction.add(position);
	return this.currentToken == TokenNameRBRACE
			|| scanner.getLineNumber(scanner.currentPosition) > scanner.getLineNumber(prevpos)
			|| this.currentToken==TokenNameEOF;
}