public void copySelectionToClipboard(@NotNull Editor editor) {
    Transferable transferable = getSelectionTransferable(editor, CopyPasteOptions.DEFAULT);
    if (transferable != null) CopyPasteManager.getInstance().setContents(transferable);
  }
public void copySelectionToClipboard(@NotNull Editor editor)