code: def filter(self, entries):
          
          return [
              entry for entry in entries
              if self.split(entry)[0] in self.declarations
          ]
docs: Filter a set of declarations: keep only those related to this object.
  
          This will keep:
          - Declarations that 'override' the current ones
          - Declarations that are parameters to current ones