private static EffectQuantum hash(EffectQuantum effect) {
    if (effect instanceof EffectQuantum.CallQuantum call) {
      return new EffectQuantum.CallQuantum(call.key.hashed(), call.data, call.isStatic);
    }
    return effect;
  }
private static EffectQuantum hash(EffectQuantum effect)