in src/main/kotlin/com/intellij/ideolog/intentions/base/HideLinesIntention.kt [26:36]
override fun isAvailable(project: Project, editor: Editor, psiFile: PsiFile?): Boolean {
if (psiFile?.fileType != LogFileType)
return false
val text = getText(editor)
val enabled = text != null
if (enabled)
lastSelection = text.toString()
return enabled
}