String (final DataContext context) { Producer<Transferable> producer = PasteAction.TRANSFERABLE_PROVIDER.getData(context); if (producer != null) { Transferable transferable = producer.produce(); if (transferable != null) { try { return (String)transferable.getTransferData(CopyReferenceAction.ourFlavor); } catch (Exception ignored) { } } return null; } return CopyPasteManager.getInstance().getContents(CopyReferenceAction.ourFlavor); }