void (final @NotNull Transferable content, final @NotNull ClipboardOwner owner) { if (Registry.is("ide.mac.useNativeClipboard") && content.isDataFlavorSupported(DataFlavor.stringFlavor)) { try { String stringData = (String) content.getTransferData(DataFlavor.stringFlavor); myFullTransferable = Pair.create(stringData, content); super.setContent(new StringSelection(stringData), owner); } catch (UnsupportedFlavorException | IOException e) { LOG.info(e); } } else { myFullTransferable = null; super.setContent(content, owner); } }