There is a class TestClass that has a method returning upper bounded wildcard type. But we don't know a parameter type of the return value:
class TestClass {
...
public Set<? extends UNKNOWN_TYPE> someMethod() {
//
}
..
}
To obtain it, let's implement printParameterType method that accepts an instance of TestClass and the name of its method.
The method should print a full name of the return upper bound type (package + class name).