def get_object_by_type(self, *types):
        """
        :param types: requested object types.
        :return: the child of the specified types.
        """
        children = self.get_objects_by_type(*types)
        return children[0] if any(children) else None
:param types: requested object types.
        :return: the child of the specified types.