public Type resolveType(Type type) {
        if (type instanceof Class) {
            Type resolvedType = types.get(type);
            if (resolvedType != null) {
                return resolvedType;
            }
        }
        return resolver.resolveType(type);
    }
public Type resolveType ( Type type ) { if ( type instanceof Class ) { Type resolvedType = types . get ( type ) ; if ( resolvedType != null ) { return resolvedType ; } } return resolver . resolveType ( type ) ; }
/*
Resolving part. Using resolvedTypeVariables map which was prepared in the processing part.