I was able to get it working with netbeans, But unfortunately still no luck with intellij.
However what i was able to do so far is developing in intellij and run the same project in netbeans ,
i did that by just adding the fork,JavaSE port as a modules and then add the module as a dependency to my CN1 project.
If you needed to edit the codename one module in Intellij wizard you could do that by changing the module type to JAVA_MODULE in the module file (.iml) and then set it back to CodenameOne.Module
Best Regards,
Ahmed