protected Set<VarType<?>> getTypeVariables()
{
AnnotatedMethod<? super X> method = getMethod();
if (method instanceof BaseTypeAnnotated) {
BaseTypeAnnotated annType = (BaseTypeAnnotated) getMethod();
Set<VarType<?>> varSet = annType.getTypeVariables();
return varSet;
}
else {
return new HashSet<VarType<?>>();