code: def Matches(self, file_entry):
      
      location = getattr(file_entry.path_spec, 'location', None)
      if not location:
        return None
  
      if '.' not in location:
        return False
  
      _, _, extension = location.rpartition('.')
      return extension.lower() in self._extensions
docs: Compares the file entry against the filter.
  
      Args:
        file_entry (dfvfs.FileEntry): file entry to compare.
  
      Returns:
        bool: True if the file entry matches the filter, False if not or
            None if the filter does not apply.