void () { ProgressIndicator currentIndicator = ProgressManager.getInstance().getProgressIndicator(); if (currentIndicator != this) { throw new AssertionError("Trying do .done() NonCancelableSection, which is already done"); } }