<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_assignments_in(self, filterlist, symbol = ""):
 """Returns a list of code elements whose names are in the specified object. :arg filterlist: the list of symbols to check agains the assignments. :arg symbol: when specified, return true if that symbol has its value changed via an assignment."""

        if symbol != "":
            lsymbol = symbol
            for assign in self._assignments:
                target = assign.split("%")[0].lower()
                if target == lsymbol:
                    return True
        else:
            result = []
            for assign in self._assignments:
                target = assign.split("%")[0].lower()
                if target in filterlist:
                    result.append(assign)
            return result