<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_profiles(self):
 """Returns set of profile names referenced in this Extension :return: set of profile name strings """

        return set(x.profile for x in self.requires if x.profile)