esk-java: avoid generating lots of unused imports