in src/main/kotlin/com/intellij/ideolog/intentions/LogJumpToSourceIntention.kt [81:98]
fun processFileOffset(psiManager: PsiManager) {
val text = ReadAction.compute<String, Throwable> {
psiManager.findFile(virtualFile)?.text
} ?: return
val strForSubstring = evt.message.take(LIMIT)
text.lines().forEachIndexed { line, strInCode ->
val limitedStrInCode = strInCode.trim().take(LIMIT)
if (limitedStrInCode.contains("\"")) {
val score = longestSubstring(m, strForSubstring, limitedStrInCode)
if (score > bestScore) {
bestLine = line
bestScore = score
}
}
}
}