code: def gather_implicit_activities(self):
          for stmt in self.statements:
              if isinstance(stmt, Phosphorylation) or \
                  isinstance(stmt, Transphosphorylation) or \
                  isinstance(stmt, Autophosphorylation):
                  if stmt.enz is not None:
                      enz_base = self._get_base(stmt.enz)
                      enz_base.add_activity('kinase')
                      enz_base.add_active_state('kinase', stmt.enz.mods)
              elif isinstance(stmt, Dephosphorylation):
                  if stmt.enz is not None:
                      enz_base = self._get_base(stmt.enz)
                      enz_base.add_activity('phosphatase')
                      enz_base.add_active_state('phosphatase', stmt.enz.mods)
              elif isinstance(stmt, Modification):
                  if stmt.enz is not None:
                      enz_base = self._get_base(stmt.enz)
                      enz_base.add_activity('catalytic')
                      enz_base.add_active_state('catalytic', stmt.enz.mods)
              elif isinstance(stmt, SelfModification):
                  if stmt.enz is not None:
                      enz_base = self._get_base(stmt.enz)
                      enz_base.add_activity('catalytic')
                      enz_base.add_active_state('catalytic', stmt.enz.mods)
              elif isinstance(stmt, Gef):
                  if stmt.gef is not None:
                      gef_base = self._get_base(stmt.gef)
                      gef_base.add_activity('gef')
                      if stmt.gef.activity is not None:
                          act = stmt.gef.activity.activity_type
                      else:
                          act = 'activity'
                      gef_base.add_active_state(act, stmt.gef.mods)
              elif isinstance(stmt, Gap):
                  if stmt.gap is not None:
                      gap_base = self._get_base(stmt.gap)
                      gap_base.add_activity('gap')
                      if stmt.gap.activity is not None:
                          act = stmt.gap.activity.activity_type
                      else:
                          act = 'activity'
                      gap_base.add_active_state('act', stmt.gap.mods)
              elif isinstance(stmt, RegulateActivity):
                  if stmt.subj is not None:
                      subj_base = self._get_base(stmt.subj)
                      subj_base.add_activity(stmt.j)