for (int i = 0; i < indentationSize; i++) {
buffer.append(indentationChar);
whiteSpacesAdded++;
}
buffer.append(document.getLineDelimiter());
IndentationBaseDetector indentationDetector = new IndentationBaseDetector(
document);
int baseline = indentationDetector.getIndentationBaseLine(
document.getLineOfOffset(offset), offset, true);
lineInfo = document.getLineInformation(baseline);
String blanks = FormatterUtils.getLineBlanks(document, lineInfo);
buffer.append(blanks);
}