@NotNull
      @Override
      public SchemeState getState(@NotNull TemplateGroup template) {
        if (template.isModified()) {
          return SchemeState.POSSIBLY_CHANGED;
        }
        LiveTemplateContextsSnapshot allContexts = LiveTemplateContextService.getInstance().getSnapshot();

        for (TemplateImpl t : template.getElements()) {
          if (differsFromDefault(allContexts, t)) {
            return SchemeState.POSSIBLY_CHANGED;
          }
        }
        return SchemeState.NON_PERSISTENT;
      }
@NotNull
      @Override
      public SchemeState getState(@NotNull TemplateGroup template)