void () { DefaultLogger.disableStderrDumping(getTestRootDisposable()); CancellationCheck cancellation = new CancellationCheck(1); assertThrows(Throwable.class, "AWT-EventQueue-0 last checkCanceled was ", () -> { runWithCheckCancellation(cancellation, 10, 1, 1); }); }