StubBase<?> deserializeStub(int index, StubBase<?> parent, IStubElementType<?, ?> type) throws IOException {
    StubInputStream stream = new StubInputStream(stubBytes(index), myStorage);
    StubBase<?> stub = (StubBase<?>)type.deserialize(stream, parent);
    int available = stream.available();
    if (available > 0) {
      if (available != 1) {
        throw new AssertionError(getSerializeDeserializerMismatchMessage(type));
      }
      stub.markDangling();
    }
    return stub;
  }
StubBase<?> deserializeStub(int index, StubBase<?> parent, IStubElementType<?, ?> type)