metamodel for types inside methods
simplify a bit of code