CodeQL library for Java
codeql/java-all 0.3.2 (changelog, source)

Member predicate GenericType::getAParameterizedType

Gets a parameterization of this generic type, where each use of a formal type parameter has been replaced by its argument.

For example, List<Number> is a parameterization of the generic type List<E>, where E is a type parameter.

ParameterizedType getAParameterizedType()