HotSwapProgressImpl (@NotNull HotSwapStatusListener statusListener, @NotNull List<DebuggerSession> sessions) { HotSwapProgressImpl progress = new HotSwapProgressImpl(myProject); progress.addProgressListener(new HotSwapProgressImpl.HotSwapProgressListener() { @Override public void onCancel() { statusListener.onCancel(sessions); } }); return progress; }