void (@NotNull ThrowableRunnable<VcsException> task) { myProcessor.add(continuation -> { boolean isSuccess = false; try { task.run(); isSuccess = true; } catch (VcsException e) { addError(e); isSuccess = e.isWarning(); } finally { if (!isSuccess) { end(); } continuation.run(); } }); }