docs: def _generate_list_shortcuts(self):
          """
          Generate the list of shortcuts of page.
          """
  
          id_container_shortcuts_before = (
              AccessibleDisplayImplementation.ID_CONTAINER_SHORTCUTS_BEFORE
          )
          id_container_shortcuts_after = (
              AccessibleDisplayImplementation.ID_CONTAINER_SHORTCUTS_AFTER
          )
          local = self.parser.find('body').first_result()
          if local is not None:
              container_before = self.parser.find(
                  '#'
                  + id_container_shortcuts_before
              ).first_result()
              if (
                  (container_before is None)
                  and (self.attribute_accesskey_before)
              ):
                  container_before = self.parser.create_element('div')
                  container_before.set_attribute(
                      'id',
                      id_container_shortcuts_before
                  )
  
                  text_container_before = self.parser.create_element('span')
                  text_container_before.set_attribute(
                      'class',
                      AccessibleDisplayImplementation.CLASS_TEXT_SHORTCUTS
                  )
                  text_container_before.append_text(
                      self.attribute_accesskey_before
                  )
  
                  container_before.append_element(text_container_before)
                  local.prepend_element(container_before)
              if container_before is not None:
                  self.list_shortcuts_before = self.parser.find(
                      container_before
                  ).find_children('ul').first_result()
                  if self.list_shortcuts_before is None:
                      self.list_shortcuts_before = self.parser.create_element(
                          'ul'
                      )
                      container_before.append_element(self.list_shortcuts_before)
  
              container_after = self.parser.find(
                  '#'
                  + id_container_shortcuts_after
              ).first_result()
              if (
                  (container_after is None)
                  and (self.attribute_accesskey_after)
              ):
                  container_after = self.parser.create_element('div')
                  container_after.set_attribute(
                      'id',
                      id_container_shortcuts_after
                  )
  
                  text_container_after = self.parser.create_element('span')
                  text_container_after.set_attribute(
                      'class',
                      AccessibleDisplayImplementation.CLASS_TEXT_SHORTCUTS
                  )
                  text_container_after.append_text(
                      self.attribute_accesskey_after
                  )
  
                  container_after.append_element(text_container_after)
                  local.append_element(container_after)
              if container_after is not None:
                  self.list_shortcuts_after = self.parser.find(
                      container_after
                  ).find_children('ul').first_result()
                  if self.list_shortcuts_after is None:
                      self.list_shortcuts_after = self.parser.create_element(
                          'ul'
                      )
                      container_after.append_element(self.list_shortcuts_after)
          self.list_shortcuts_added = True