@Override
  public void loadState(@NotNull TemplatesState state) {
    if (StringUtil.isEmpty(state.defaultTemplateName) && !StringUtil.isEmpty(state.oldDefaultTemplateName)) {
      state.defaultTemplateName = state.oldDefaultTemplateName;
    }
    state.oldDefaultTemplateName = null;
    myState = state;
  }
@Override
  public void loadState(@NotNull TemplatesState state)