boolean (@NotNull Editor editor, @NotNull Caret caret, DataContext dataContext) { final TemplateState templateState = TemplateManagerImpl.getTemplateState(editor); if (templateState != null && !templateState.isFinished()) { return true; } return myOriginalHandler.isEnabled(editor, caret, dataContext); }