@Override
  public void serialize(@NotNull PsiClassReferenceListStub stub, @NotNull StubOutputStream dataStream) throws IOException {
    TypeInfo[] types = stub.getTypes();
    dataStream.writeVarInt(types.length);
    for (TypeInfo info : types) {
      TypeInfo.writeTYPE(dataStream, info);
    }
  }
@Override
  public void serialize(@NotNull PsiClassReferenceListStub stub, @NotNull StubOutputStream dataStream)