default void invokeOnCompletion(@NotNull Consumer<? super Throwable> consumer) {
    throw new UnsupportedOperationException("invokeOnCompletion is not supported by this BuildEventDispatcher");
  }
default void invokeOnCompletion(@NotNull Consumer<? super Throwable> consumer)