void (int currentIndent) { int relativeIndent = currentIndent - myPreviousLineIndent; if (relativeIndent < 0) { IndentData indentData = findParentIndent(currentIndent); myPreviousLineIndent = indentData.indent; myPreviousRelativeIndent = indentData.relativeIndent; relativeIndent = currentIndent - myPreviousLineIndent; } if (relativeIndent == 0) { relativeIndent = myPreviousRelativeIndent; } else { myParentIndents.push(new IndentData(currentIndent, relativeIndent)); } myIndentToUsagesMap.addTo(relativeIndent, 1); myPreviousRelativeIndent = relativeIndent; myPreviousLineIndent = currentIndent; if (currentIndent > 0) { myTotalLinesWithWhiteSpaces++; } }