void (@NotNull AnActionEvent e) { final VirtualFile baseFile = getContentFile(myBaseSide); final VirtualFile targetFile = getContentFile(myBaseSide.other()); assert baseFile != null && targetFile != null; try { WriteAction.run(() -> targetFile.setBinaryContent(baseFile.contentsToByteArray())); } catch (IOException err) { LOG.warn(err); Messages.showErrorDialog(getProject(), err.getMessage(), DiffBundle.message("can.t.copy.file")); } }