Manage scope and indent level using a stack in JavaFileWriter so the caller doesn't have to