void (@NotNull DataContext dataContext) { ImageDocument document = imageComponent.getDocument(); BufferedImage image = document.getValue(); CopyPasteManager.getInstance().setContents(new ImageTransferable(image)); }