void (final MethodVisitor mv) { new SwitchGenerator<Integer>(){ @Override void generateCaseBody(Integer argCount) { pushIntConstant(mv, argCount); } @Override Integer getSwitchedValue(ReportingPlace place) { return place.args.length; } }.generateSwitch(mv); mv.visitTypeInsn(ANEWARRAY, OBJECT_CLASS_NAME); }