public void templateChanged() {
    if (!myTemplateChanged) {
      myTemplateChanged = true;
      if (!myDraftTemplateNode.equals(getSelectedNode())) {
        myDraftTemplateAutoselect = true;
        TreeUtil.selectInTree(myDraftTemplateNode, false, patternTree, true);
        myDraftTemplateAutoselect = false;
      }
    }
  }
public void templateChanged()