private static List<Type> getBounds(TypeVar v, DocEnv env) {
        Name boundname = v.getUpperBound().tsym.getQualifiedName();
        if (boundname == boundname.table.java_lang_Object) {
            return List.nil();
        } else {
            return env.types.getBounds(v);
        }
    }