Also what do you mean by it knows what's imported? Does JavaWriter keep state? Or can we just move this method there as is--i.e. we would provide the same parameters but just move it to JavaWriter?