public void copyChangeToClipboard(@NotNull ApplyPatchChange change) {
    LineRange patchRange = change.getPatchInsertionRange();
    CharSequence newContent = DiffUtil.getLinesContent(myPatchEditor.getDocument(), patchRange.start, patchRange.end);

    CopyPasteManager.copyTextToClipboard(newContent.toString());

    myPatchEditor.getCaretModel().moveToOffset(myPatchEditor.getDocument().getLineStartOffset(patchRange.start));
    HintManager.getInstance().showInformationHint(myPatchEditor, DiffBundle.message("patch.dialog.copy.change.command.balloon"), HintManager.UNDER);
  }
public void copyChangeToClipboard(@NotNull ApplyPatchChange change)