@Override
                public void templateFinished(@NotNull Template template, boolean brokenOff) {
                    if (brokenOff) {
                        onCancel(myRestart);
                    }
                }
@Override
                public void templateFinished(@NotNull Template template, boolean brokenOff)