@Override
  public @NotNull String getText() {
    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;
  }
@Override
  public @NotNull String getText()