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