String () { Document document = getDocument(); String text = document.getText(); LineSeparator separator = LINE_SEPARATOR_KEY.get(document); if (separator != null) { return StringUtil.convertLineSeparators(text, separator.getSeparatorString()); } return text; }