def generated_module?
      return false unless extname == '.mod'
      return false unless lines.count > 1
      return lines[0].include?("PCBNEW-LibModule-V") ||
              lines[0].include?("GFORTRAN module version '")
    end
def generated_module?
      return false unless extname == '.mod'
      return false unless lines.count > 1
      return lines[0].include?("PCBNEW-LibModule-V") ||
              lines[0].include?("GFORTRAN module version '")
    end
Internal: Is it a KiCAD or GFortran module file?

 KiCAD module files contain:
 PCBNEW-LibModule-V1  yyyy-mm-dd h:mm:ss XM
 on the first line.

 GFortran module files contain:
 GFORTRAN module version 'x' created from
 on the first line.

 Return true or false