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