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

    return context.getTemplateContextType();
  }
public @NotNull TemplateContextType getTemplateContextType(@NotNull String id)