private static @NotNull String buildNewTextBlockText(String text, int indent) {
      final StringBuilder newExpression = new StringBuilder();
      int offset = 0;
      int end = text.endsWith("\"\"\"") ? text.length() - 3 : text.length() - 2;
      int start = findUnnecessaryTextBlockEscapes(text, text.startsWith("\"\"\"") ? 4 : 1, end);
      while (start >= 0) {
        newExpression.append(text, offset, start);
        offset = start + 2;
        final @NonNls String escape = text.substring(start, offset);
        if ("\\n".equals(escape)) {
          newExpression.append('\n').append(StringUtil.repeatSymbol(' ', indent));
        }
        else {
          newExpression.append(escape.charAt(1));
        }
        start = findUnnecessaryTextBlockEscapes(text, offset, end);
      }
      newExpression.append(text.substring(offset));
      return newExpression.toString();
    }
private static @NotNull String buildNewTextBlockText(String text, int indent)