docs: public static DispatcherException extractDispatcherException(final StepExecutionResult result) {
          Optional<NodeDispatchStepExecutorExceptionResult>
              extracted =
              extractNodeDispatchStepExecutorExceptionResult(result);
          if (!extracted.isPresent()) {
              throw new IllegalArgumentException("Cannot extract result: unexpected type: " + result);
          }
          return extracted.get().getDispatcherException();
      }