void () { if (!myAssertion.getAsBoolean()) { throw new AssertionError("Supplied assertion failed", myStacktrace); } mySemaphore.waitFor(); ProgressManager.checkCanceled(); TimeoutUtil.sleep(1); if (!myAssertion.getAsBoolean()) { throw new AssertionError("Supplied assertion failed", myStacktrace); } myFinished = true; }