handle type parameters of interfaces and classes