CopyDiagramToClipboardAction optimization