Set of names of types which the Command depends on.

def required_types(self):
        """Set of names of types which the Command depends on.
        """
        required_types = set(x.type for x in self.params)
        required_types.add(self.type)
        required_types.discard(None)
        return required_types