int indentStartLine=separatorIndent(indexStartLine);
boolean hasIndentChilds=false;
boolean isSecondLine=true;
ArrayList<Integer> endLocations=new ArrayList<Integer>();
int indexNextLine=skipLine(indexStartLine);
<BUG>while(myParser.getCurrentToken()!=SGLR.EOF && 0<=indexNextLine && indexNextLine<=getHistory().getIndexLastLine()){
</BUG>
IndentInfo nextLine = getHistory().getLine(indexNextLine);
int indentSkipPosition=nextLine.getIndentValue();
indentShift shift=calculateShift(indentStartLine, indentSkipPosition);

int indentStartLine=separatorIndent(indexStartLine);
boolean hasIndentChilds=false;
boolean isSecondLine=true;
ArrayList<Integer> endLocations=new ArrayList<Integer>();
int indexNextLine=skipLine(indexStartLine);
while(myParser.getCurrentToken().getToken()!=SGLR.EOF && 0<=indexNextLine && indexNextLine<=getHistory().getIndexLastLine()){
IndentInfo nextLine = getHistory().getLine(indexNextLine);
int indentSkipPosition=nextLine.getIndentValue();
indentShift shift=calculateShift(indentStartLine, indentSkipPosition);
