textDocument.getTextService().getText().getTextCursorService().getTextCursor();
textCursor.gotoEnd(false);
IParagraph paragraph =
textDocument.getTextService().getTextContentService().constructNewParagraph();
textCursor.gotoEnd(false);
textDocument.getTextService().getTextContentService().insertTextContent(textCursor.getEnd(),paragraph);
StringBuffer bufferedString = new StringBuffer();
for(int j=0;j<allTexts2BePlaced[i].length;j++ ) {
bufferedString.append(allTexts2BePlaced[i][j] +"\n");
}