<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def drawInspectorContents(self, reason, origin=None):
 """ Draws all contents of this window's inspector. The reason and origin parameters are passed on to the inspector's updateContents method. :param reason: string describing the reason for the redraw. Should preferably be one of the UpdateReason enumeration class, but new values may be used (which are then ignored by existing inspectors). :param origin: object with extra infor on the reason """

        logger.debug("")
        logger.debug("-------- Drawing inspector of window: {} --------".format(self.windowTitle()))
        if self.inspector:
            self.inspector.updateContents(reason=reason, initiator=origin)
        else:
            logger.debug("No inspector selected")
        logger.debug("Finished draw inspector.\n")