public void setContent(@NotNull Transferable content, final @NotNull ClipboardOwner owner) {
      Clipboard clipboard = getClipboard();
      if (clipboard == null) {
        return;
      }

      IllegalStateException lastException = null;
      for (int i = 0; i < getRetries(); i++) {
        try {
          clipboard.setContents(content, owner);
          return;
        }
        catch (IllegalStateException e) {
          lastException = e;
        }
      }
      LOG.debug(lastException);
      NotificationGroupManager.getInstance().getNotificationGroup("System Clipboard")
        .createNotification(UIBundle.message("clipboard.is.unavailable"), MessageType.WARNING)
        .notify(null);
    }
public void setContent(@NotNull Transferable content, final @NotNull ClipboardOwner owner)