code: private void showConfirmOverwrite(List<CmsResource> collidingResources) {
  
          final Window window = CmsBasicDialog.prepareWindow();
          window.setCaption(CmsVaadinUtils.getMessageText(Messages.GUI_COPY_MOVE_CONFIRM_OVERWRITE_TITLE_0));
          final CmsConfirmationDialog dialog = new CmsConfirmationDialog(
              CmsVaadinUtils.getMessageText(Messages.GUI_COPY_MOVE_CONFIRM_OVERWRITE_MESSAGE_0),
              new Runnable() {
  
                  public void run() {
  
                      window.close();
                      submit(true, null);
                  }
              },
              new Runnable() {
  
                  public void run() {
  
                      window.close();
                      cancel();
                  }
              });
          dialog.displayResourceInfo(collidingResources);
          window.setContent(dialog);
          UI.getCurrent().addWindow(window);
      }
docs: Displays the confirm overwrite dialog.<p>
  
  @param collidingResources the colliding resources