in src/main/scala/org/intellij/scala/bundle/Mapper.scala [56:62]
def edit(editor: String => String): Mapper = {
case entry =>
val output = new ByteArrayOutputStream()
IOUtils.copy(entry.input.get, output)
val s = editor(new String(output.toByteArray))
entry.copy(size = s.length, input = Some(new ByteArrayInputStream(s.getBytes)))
}