@Override
    public void undo() {
      if (myTemplateState != null) {
        LookupManager.getInstance(myProject).hideActiveLookup();
        myTemplateState.cancelTemplate();
      }
    }
@Override
    public void undo()