public static void copyTo(Object from, Object to) {
		if (from == null || to == null)
			return;
		// Types must match
		Class<?> type = to.getClass();
		if (!type.equals(from.getClass()))
			return;
		// Copy field values in 'from' into 'to'
		for (Field field : type.getDeclaredFields()) {
			if ((field.getModifiers() & Modifier.STATIC) > 0)
				continue;
			field.setAccessible(true);
			Object value = quietGet(from, field);
			quietSet(to, field, value);
		}
	}
Copy field values in 'from' into 'to'.

@param from
		Instance with values to copy.
@param to
		Destination to copy values into.
recaf-core/src/main/java/software/coley/recaf/util/ReflectUtil.java