@Nullable
  static List<EventPair<?>> createTemplateData(@NotNull TemplateImpl template, @NotNull Language language) {
    Triple<String, String, PluginInfo> keyGroupPluginToLog = getKeyGroupPluginToLog(template);
    if (keyGroupPluginToLog == null) {
      return null;
    }

    List<EventPair<?>> data = new ArrayList<>();
    data.add(EventFields.Language.with(language));
    data.add(TEMPLATE_GROUP.with(keyGroupPluginToLog.getSecond()));
    PluginInfo plugin = keyGroupPluginToLog.getThird();
    if (plugin != null) {
      data.add(EventFields.PluginInfo.with(plugin));
    }
    data.add(KEY.with(keyGroupPluginToLog.getFirst()));
    data.add(CHANGED_BY_USER.with(TemplateSettings.getInstance().differsFromDefault(template)));
    return data;
  }
@Nullable
  static List<EventPair<?>> createTemplateData(@NotNull TemplateImpl template, @NotNull Language language)