private static boolean isAssignable(final Method candidate, final Method method) {
        if (!method.getName().equals(candidate.getName())) {
            return false;
        }

        if (method.getParameterTypes().length != candidate.getParameterTypes().length) {
            return false;
        }

        if (!isAssignable(method.getReturnType(), candidate.getReturnType())) {
            return false;
        }

        return isAssignable(method.getParameterTypes(), candidate.getParameterTypes());
    }
returns true if the supplied method can handle the invocation
of the candidate Method.

@param candidate the method to inspect
@param method    the proposed bridge method
@return true if the supplied method can handle the invocation
of the candidate Method.
core/src/main/java/com/github/dozermapper/core/util/BridgedMethodFinder.java