void () { List<Object> objects = Collections.nCopies(1_000_000, null); ApplicationManager.getApplication().runWriteAction(() -> { boolean success = JobLauncher.getInstance().invokeConcurrentlyUnderProgress(objects, null, true, false, __ -> { COUNT.incrementAndGet(); return true; }); assertTrue(success); assertEquals(objects.size(), COUNT.get()); }); }