in log4j-converter-plugin-descriptor/src/main/java/org/apache/logging/log4j/converter/plugins/internal/PluginDescriptors.java [425:436]
private static Class<?> findBuilderClass(final Type type) {
if (type instanceof Class) {
return ((Class<?>) type);
}
if (type instanceof ParameterizedType) {
return findBuilderClass(((ParameterizedType) type).getRawType());
}
if (type instanceof TypeVariable) {
return findBuilderClass(((TypeVariable<?>) type).getBounds()[0]);
}
throw new IllegalArgumentException("Unable to handle reflective type: " + type);
}