public Collection<TypeParameterDeclaration> getFormalTypeParameters() {
        ArrayList<TypeParameterDeclaration> res =
            new ArrayList<TypeParameterDeclaration>();
        for (Type t : sym.type.getTypeArguments()) {
            res.add(env.declMaker.getTypeParameterDeclaration(t.tsym));
        }
        return res;
    }