@Override
	public MethodVisitor visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) {
		if (AccessFlag.isVarargs(access)) {
			Type methodType = Type.getMethodType(descriptor);
			Type[] argumentTypes = methodType.getArgumentTypes();
			if (argumentTypes.length == 0 || argumentTypes[argumentTypes.length - 1].getSort() != Type.ARRAY) {
				access = AccessFlag.removeFlag(access, ACC_VARARGS);
				detected = true;
			}
		}
		return super.visitMethod(access, name, descriptor, signature, exceptions);
	}
@return {@code true} if any illegal varargs were removed.
recaf-core/src/main/java/software/coley/recaf/util/visitors/IllegalVarargsRemovingVisitor.java