void (@NotNull List<? extends Throwable> exceptions) { if (exceptions.isEmpty()) { return; } ProcessCanceledException processCanceledException = null; for (Throwable exception : exceptions) { if (!(exception instanceof ProcessCanceledException)) { getLogger().error(exception); } else if (processCanceledException == null) { processCanceledException = (ProcessCanceledException)exception; } } if (processCanceledException != null) { throw processCanceledException; } }