private static Type[] getGenericInterfaces(final Type type) {
        if (type instanceof Class) {
            return Class.class.cast(type).getGenericInterfaces();
        }
        return EMPTY_TYPES;
    }
return the generic interfaces of the type if type is a class
core/src/main/java/com/github/dozermapper/core/util/TypeResolver.java