void (@NotNull ProgressIndicator indicator) { for (T item : myItems) { try { process(item); } catch (VcsException ex) { if (ApplicationManager.getApplication().isUnitTestMode()) { throw new RuntimeException(ex); } myExceptions.add(ex); } } }