void (@NotNull ProgressIndicator indicator) { assertFalse(indicator instanceof NonCancelableIndicator); assertFalse(progressManager.isInNonCancelableSection()); progressManager.executeNonCancelableSection(() -> { assertTrue(progressManager.getProgressIndicator() instanceof NonCancelableIndicator); assertTrue(progressManager.isInNonCancelableSection()); progressManager.executeProcessUnderProgress(() -> { assertFalse(progressManager.getProgressIndicator() instanceof NonCancelableIndicator); assertTrue(progressManager.isInNonCancelableSection()); }, new DaemonProgressIndicator()); assertTrue(progressManager.isInNonCancelableSection()); }); assertFalse(progressManager.isInNonCancelableSection()); }