docs: def get_decorators(self, node):
          """Return a list of decorators found on a function definition.
  
          This is a list of strings; only simple decorators
          (e.g. @staticmethod) are returned.
  
          If the function is undecorated or only non-simple decorators
          are found, return [].
          """
          if node.parent is None:
              return []
          results = {}
          if not self.decorated.match(node.parent, results):
              return []
          decorators = results.get('dd') or [results['d']]
          decs = []
          for d in decorators:
              for child in d.children:
                  if isinstance(child, Leaf) and child.type == token.NAME:
                      decs.append(child.value)
          return decs