void () { DefaultLogger.disableStderrDumping(getTestRootDisposable()); ProgressIndicatorEx p = new ProgressIndicatorBase(); ProgressManager.getInstance().executeProcessUnderProgress(() -> { boolean allowed = true; try { ProgressManager.getInstance().runProcess(() -> {}, p); } catch (Throwable ignored) { allowed = false; } assertFalse("pm.runProcess() with the progress already used in the other thread must be prohibited", allowed); }, p); }