Right now module-info file generation supports only adding requires and exports directives.
Since java.lang.Module implements java.lang.reflect.AnnotatedElement and thus can in theory be annotated, so should com.sun.codemodel.JModule implement com.sun.codemodel.JAnnotatable.
Besides that module-info files can contain JavaDoc, so they should probably implement com.sun.codemodel.JDocCommentable.