TemplateContextType (@NotNull String id) { LiveTemplateContext context = getLiveTemplateContext(id); if (context == null) throw new LiveTemplateContextNotFoundException("Unable to find LiveTemplateContext with contextId " + id); return context.getTemplateContextType(); }