resolveSimpleTypeVariableInUniverse
public static Optional<Type> resolveSimpleTypeVariableInUniverse(Map<TypeVariable<? extends Object>, Type> universe, TypeVariable<? extends Object> query)(source)
Given a universe of assignments for type-variables, resolve type-variables to a concrete non-generic type (at the top level). This will not implicitly resolve constructs like U = List<T>, T = String, U?, instead keeping resolving U? = List<T>.