private void deserializeStub(int parentIndex) throws IOException, SerializerNotFoundException {
        int index = currentIndex;
        currentIndex++;

        int serializerId = DataInputOutputUtil.readINT(inputStream);
        ObjectStubSerializer<?, Stub> serializer = getClassByIdLocal(serializerId, null, state);

        int start = serializer instanceof EmptyStubSerializer ? 0 : DataInputOutputUtil.readINT(inputStream);

        allStarts.set(start);

        addStub(parentIndex, index, start, (IElementType)serializer);
        if (!serializer.isAlwaysLeaf(root)) {
          deserializeChildren(index);
        }
      }
private void deserializeStub(int parentIndex)