void (@NotNull Editor editor, @Nullable Caret caret, DataContext dataContext) { // We capture the contents to paste here, so it that it won't be affected by possible clipboard operations later (e.g. during unlocking // of current file for writing) myTransferable = getContentsToPaste(editor, dataContext); try { super.doExecute(editor, caret, dataContext); } catch (EditorCopyPasteHelper.TooLargeContentException e) { contentLengthLimitExceededMessage(e.getContentLength()); } finally { myTransferable = null; } }