in src/main/kotlin/com/github/mkartashev/hserr/file/LargeFileNotificationProvider.kt [16:25]
override fun collectNotificationData(project: Project, file: VirtualFile): Function<in FileEditor, out JComponent?> {
return Function {
if (!isTooLarge(file.length)) {
return@Function null
}
val panel = EditorNotificationPanel()
return@Function panel.text(HsErrBundle.message("fileIsTooLargeText"))
}
}