private void reportError(String key, AtomicReference<String> error) {
    var message = error.get();
    myErrorSink.accept(message != null ? UIBundle.message(key, message) : null);
  }
private void reportError(String key, AtomicReference<String> error)