@Nullable
  static TemplateState clearTemplateState(@NotNull Editor editor) {
    return (TemplateState) TemplateManagerUtilBase.clearTemplateState(editor);
  }
@Nullable
  static TemplateState clearTemplateState(@NotNull Editor editor)