FORGE-1219: createMain now is respected if the project has
JavaSourceFacet enabled