public static bool IsOpCode(this Instruction instruction, params OpCode[] opCodes)
{
if (opCodes.Length == 0)
{
return true;
}
foreach (var opCode in opCodes)
{
if (instruction.OpCode == opCode)
{
return true;
}
}
return false;
}