TemplateContextType (@NotNull Class<?> clazz) { LiveTemplateContext context = getLiveTemplateContext(clazz); if (context == null) throw new LiveTemplateContextNotFoundException("Unable to find LiveTemplateContext with class " + clazz); return context.getTemplateContextType(); }