Why not just `emitImports()`?  We have the JavaWriter, and then you wouldn't need the weird mutable out-param for imports.