in src/main/kotlin/com/intellij/ideolog/largeFile/IdeologLargeFileDocumentContext.kt [12:20]
fun getLogFileFormatByFirstMatch(fileLines: Sequence<String>, regexMatchers: List<RegexLogParser>): LogFileFormat {
fileLines.forEach { line ->
val matchedRegex = matchLogFileFormatRegex(line, regexMatchers)
if (matchedRegex != null) {
return LogFileFormat(matchedRegex)
}
}
return LogFileFormat(null)
}