Change in Modelmapper TypeResolver from release 0.6.3 to 2.3.2

Currently code is using 0.6.3 version of modelmapper dependency for java. It is using TypeResolver for some types. We want to upgrade this library to latest version of 2.3.2. This latest version doesn’t contain TypeResolver class. Whats the alternative for this class? Currently my code looks like: Class[] args = TypeResolver.resolveArguments(B.class, A.class);

I tried using, Destination) but it gives runtime error.