@Override
  protected ObjectStubSerializer<?, Stub> getClassByIdLocal(int localId,
                                                            @Nullable Stub parentStub,
                                                            @NotNull IntEnumerator enumerator) throws SerializerNotFoundException {
    int id = enumerator.valueOf(localId);
    return myEnumerator.getClassById((id1, name, externalId) -> {
      myEnumerator.tryDiagnose();
      var root = ourRootStubSerializer.get();
      return (root != null ? StubSerializationUtil.brokenStubFormat(root) : "") +
             "No serializer is registered for stub ID: " +
             id1 + ", externalId: " + externalId + ", name: " + name +
             "; parent stub class: " + (parentStub != null ? parentStub.getClass().getName() + ", parent stub type: " + parentStub.getStubType() : "null");
    }, id);
  }
@Override
  protected ObjectStubSerializer<?, Stub> getClassByIdLocal(int localId,
                                                            @Nullable Stub parentStub,
                                                            @NotNull IntEnumerator enumerator)