@Override
  @Nullable
  public Template getActiveTemplate(@NotNull Editor editor) {
    final TemplateState templateState = getTemplateState(editor);
    return templateState != null ? templateState.getTemplate() : null;
  }
@Override
  @Nullable
  public Template getActiveTemplate(@NotNull Editor editor)