void () { ProgressIndicator outerIndicator = new ProgressIndicatorBase(); outerIndicator.setIndeterminate(false); waitForPromise(ReadAction .nonBlocking(() -> { ProgressIndicator indicator = ProgressManager.getInstance().getProgressIndicator(); indicator.setText("X"); indicator.setFraction(0.5); assertEquals("X", outerIndicator.getText()); assertEquals(0.5, outerIndicator.getFraction()); indicator.setIndeterminate(true); assertTrue(outerIndicator.isIndeterminate()); }) .wrapProgress(outerIndicator) .submit(AppExecutorUtil.getAppExecutorService())); }