static void log(@NotNull final PostfixTemplate template, @NotNull final PsiElement context) {
    final ArrayList<EventPair<?>> events = new ArrayList<>(4);
    events.add(LANGUAGE.with(context.getLanguage()));
    if (template.isBuiltin()) {
      final PostfixTemplateProvider provider = template.getProvider();
      final String providerId = provider != null ? provider.getId() : NO_PROVIDER;
      events.add(TEMPLATE.with(template.getId()));
      events.add(PROVIDER.with(providerId));
    }
    else {
      events.add(TEMPLATE.with(CUSTOM));
      events.add(PROVIDER.with(CUSTOM));
    }
    events.add(PLUGIN_INFO.with(PluginInfoDetectorKt.getPluginInfo(template.getClass())));
    EXPANDED.log(context.getProject(), events);
  }
static void log(@NotNull final PostfixTemplate template, @NotNull final PsiElement context)