@Override
  public @NotNull String preprocessOnPaste(Project project, PsiFile file, Editor editor, String text, RawText rawText) {
    if (!JsonEditorOptions.getInstance().ESCAPE_PASTED_TEXT) {
      return text;
    }
    if (!isSupportedFile(file)) {
      return text;
    }

    final SelectionModel selectionModel = editor.getSelectionModel();
    final int selectionStart = selectionModel.getSelectionStart();
    final int selectionEnd = selectionModel.getSelectionEnd();

    final JsonStringLiteral literalExpression = getSingleElementFromSelectionOrNull(file, selectionStart, selectionEnd);
    if (literalExpression == null) {
      return text;
    }

    return StringUtil.escapeStringCharacters(text);
  }
@Override
  public @NotNull String preprocessOnPaste(Project project, PsiFile file, Editor editor, String text, RawText rawText)