protected void restart(RefactoringActionHandler handler) {
        myRestart = true;
        PsiFile file = myDeclaration.getContainingFile();
        TemplateState state = TemplateManagerImpl.getTemplateState(myEditor);
        if (state != null) {
            state.gotoEnd(true);
        }
        handler.invoke(myProject, myEditor, file, null);
    }
protected void restart(RefactoringActionHandler handler)