int nrOfParsedLines=0;
IndentationHandler indentHandler = new IndentationHandler();
indentHandler.setInLeftMargin(false);
while((myParser.activeStacks.size() > 0 && nrOfParsedLines<NR_OF_LINES_TILL_SUCCESS)) {//|| !getHistory().hasFinishedRecoverTokens()
getHistory().readRecoverToken(myParser,false);
<BUG>indentHandler.updateIndentation(myParser.getCurrentToken());
</BUG>
myParser.doParseStep();
if(getHistory().getTokenIndex()>errorDetectionLocation && indentHandler.lineMarginEnded())
nrOfParsedLines++;

int nrOfParsedLines=0;
IndentationHandler indentHandler = new IndentationHandler();
indentHandler.setInLeftMargin(false);
while((myParser.activeStacks.size() > 0 && nrOfParsedLines<NR_OF_LINES_TILL_SUCCESS)) {//|| !getHistory().hasFinishedRecoverTokens()
getHistory().readRecoverToken(myParser,false);
indentHandler.updateIndentation(myParser.getCurrentToken().getToken());
myParser.doParseStep();
if(getHistory().getTokenIndex()>errorDetectionLocation && indentHandler.lineMarginEnded())
nrOfParsedLines++;
