void (@NotNull Runnable action) { Semaphore started = new Semaphore(); started.down(); AppExecutorUtil.getAppExecutorService().execute(() -> { ProgressManager.getInstance().runProcess(() -> { started.up(); action.run(); }, this); }); started.waitFor(); }