WhiteSpace () { assertDone(); if (myLastWhiteSpace == null) { int lastBlockOffset = getLastBlock().getEndOffset(); myLastWhiteSpace = new WhiteSpace(lastBlockOffset, false); FormattingDocumentModel model = myWrapper.getFormattingDocumentModel(); CommonCodeStyleSettings.IndentOptions options = myBlockIndentOptions.getIndentOptions(); myLastWhiteSpace.changeEndOffset(Math.max(lastBlockOffset, myWrapper.getEndOffset()), model, options); } return myLastWhiteSpace; }