in instrumentation/src/com/intellij/rt/coverage/instrumentation/filters/branches/JavaStringSwitchFilter.java [96:110]
public void visitVarInsn(int opcode, int varIndex) {
super.visitVarInsn(opcode, varIndex);
if (myState == 1 && opcode == Opcodes.ISTORE) {
myState++;
mySlot = varIndex;
} else if (myState == 10 && opcode == Opcodes.ISTORE && varIndex == mySlot) {
myState++;
} else if ((myState == 2 || myState == 5) && opcode == Opcodes.ALOAD) {
myState++;
} else if (myState == 12 && opcode == Opcodes.ILOAD && varIndex == mySlot) {
myState++;
} else {
myState = 0;
}
}