final Instruction instruction;
if (opcode == Opcode.NEWARRAY) {
instruction = new ReferenceOperandInstruction(instructionList.size(), opcode, currentLineNumber, NEWARRAY_TYPES[operand]);
}
else {
instruction = new IntOperandInstruction(instructionList.size(), opcode, currentLineNumber, operand);
}
updateCurrentState(instruction);
}