if (check[i] != callbackTypes[i]) {
if (!check[i].equals(callbackTypes[i])) {
    private void validate(boolean transforming) {        if (transforming && filter != null && !(filter instanceof CallbackFilter2)) {            throw new IllegalStateException("CallbackFilter2 must be used when transforming");        }        if ((classOnly || transforming) ^ (callbacks == null)) {            if (classOnly || transforming) {                throw new IllegalStateException("createClass and createTransformer do not accept callbacks");            } else {                throw new IllegalStateException("Callbacks are required");            }        }        if ((classOnly || transforming) && callbackTypes == null) {            throw new IllegalStateException("Callback types are required");        }        if (callbacks != null && callbackTypes != null) {            if (callbacks.length != callbackTypes.length) {                throw new IllegalStateException("Lengths of callback and callback types array must be the same");            }            Type[] check = CallbackInfo.determineTypes(callbacks);            for (int i = 0; i < check.length; i++) {                if (check[i] != callbackTypes[i]) {                    throw new IllegalStateException("Callback " + check[i] + " is not assignable to " + callbackTypes[i]);                }            }        } else if (callbacks != null) {            callbackTypes = CallbackInfo.determineTypes(callbacks);        }        if (filter == null) {            if (callbackTypes.length > 1) {                throw new IllegalStateException("Multiple callback types possible but no filter specified");            }            filter = CallbackFilter2.ALL_ZERO;        }        if (interfaces != null) {            for (int i = 0; i < interfaces.length; i++) {                if (interfaces[i] == null) {                    throw new IllegalStateException("Interfaces cannot be null");                }                if (!interfaces[i].isInterface()) {                    throw new IllegalStateException(interfaces[i] + " is not an interface");                }            }        }    }