IDEX-1604 improve code generation, fix open declaration in maven multimodule projects