void (@NotNull final Editor editor, @NotNull final Project project, final PsiFile file, final Document document, @NotNull final Transferable content) { final TypingActionsExtension typingActionsExtension = TypingActionsExtension.findForContext(project, editor); try { typingActionsExtension.startPaste(project, editor); doPasteAction(editor, project, file, document, content, typingActionsExtension); } finally { typingActionsExtension.endPaste(project, editor); } }