boolean (@NotNull Editor editor, @NotNull Caret caret, DataContext dataContext) { Project project = editor.getProject(); return project != null && ((TemplateManagerImpl)TemplateManager.getInstance(project)).prepareTemplate(editor, shortcutChar, null) != null; }