code: def find_declaration(
          declarations,
          decl_type=None,
          name=None,
          parent=None,
          recursive=True,
          fullname=None):
      
  
      decl = find_all_declarations(
          declarations,
          decl_type=decl_type,
          name=name,
          parent=parent,
          recursive=recursive,
          fullname=fullname)
      if len(decl) == 1:
          return decl[0]
docs: Returns single declaration that match criteria, defined by developer.
      If more the one declaration was found None will be returned.
  
      For more information about arguments see :class:`match_declaration_t`
      class.
  
      :rtype: matched declaration :class:`declaration_t` or None