in src/main/scala/org/intellij/scala/bundle/MacHost.scala [120:130]
private def text(file: String): LocalSourceFile = {
val bytes = new String(Files.readAllBytes(Paths.get(file))).replaceAll("\r", "").getBytes
new InMemorySourceFile {
override def getName: String = file
override def getLength: Long = bytes.length
override def getInputStream: InputStream = new ByteArrayInputStream(bytes)
}
}