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