code: def get_modifications(self):
          
          # Get all the specific mod types
          mod_event_types = list(ont_to_mod_type.keys())
          # Add ONT::PTMs as a special case
          mod_event_types += ['ONT::PTM']
          mod_events = []
          for mod_event_type in mod_event_types:
              events = self.tree.findall("EVENT/[type='%s']" % mod_event_type)
              mod_extracted = self.extracted_events.get(mod_event_type, [])
              for event in events:
                  event_id = event.attrib.get('id')
                  if event_id not in mod_extracted:
                      mod_events.append(event)
  
          # Iterate over all modification events
          for event in mod_events:
              stmts = self._get_modification_event(event)
              if stmts:
                  for stmt in stmts:
                      self.statements.append(stmt)
docs: Extract all types of Modification INDRA Statements.