<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def __set_clear_button_visibility(self, text):
 """ Sets the clear button visibility. :param text: Current field text. :type text: QString """


        if text:
            self.__clear_button.show()
        else:
            self.__clear_button.hide()