IndentData () { int spaces = getWhiteSpace().getSpaces(); int indentSpaces = getWhiteSpace().getIndentSpaces(); if (getWhiteSpace().containsLineFeeds()) { return new IndentData(indentSpaces, spaces); } for (LeafBlockWrapper current = this.getPreviousBlock(); current != null; current = current.getPreviousBlock()) { spaces += current.getWhiteSpace().getSpaces(); spaces += current.getSymbolsAtTheLastLine(); indentSpaces += current.getWhiteSpace().getIndentSpaces(); if (current.getWhiteSpace().containsLineFeeds()) { break; } } return new IndentData(indentSpaces, spaces); }