public Object convert(Object object) {
    return myTelemetry.callWithSpan("SerializeGradleModel", span -> {
      span.setAttribute("model.class", object.getClass().getName());
      try {
        return mySerializer.write(object);
      }
      catch (SerializationServiceNotFoundException ignore) {
      }
      catch (Exception e) {
        Throwable unwrap = Exceptions.unwrap(e);
        if (object instanceof IdeaProject) {
          ExceptionUtilRt.rethrowUnchecked(unwrap);
          throw new RuntimeException(unwrap);
        }
        //noinspection UseOfSystemOutOrSystemErr
        System.err.println(ExceptionUtilRt.getThrowableText(unwrap, "org.jetbrains."));
      }
      return object;
    });
  }
public Object convert(Object object)