private static void addVariantInner(ErrorState state, int pos, Object o) {
   Variant variant = state.VARIANTS.alloc().init(pos, o);
   if (state.predicateSign) {
     state.variants.add(variant);
     if (state.lastExpectedVariantPos < variant.position) {
       state.lastExpectedVariantPos = variant.position;
     }
   } else {
     state.unexpected.add(variant);
   }
 }
 private static void addVariantInner(ErrorState state, int offset, Object o) {
   Variant variant = state.VARIANTS.alloc().init(offset, o);
   if (state.predicateSign) {
     state.variants.add(variant);
     if (state.lastExpectedVariantOffset < variant.offset) {
       state.lastExpectedVariantOffset = variant.offset;
     }
   } else {
     state.unexpected.add(variant);
   }
 }