SI-8367 revert SI-8192's change to primaryConstructor when isJavaDefined

this is some weird stuff
Merge pull request #3607 from xeno-by/ticket/8367

SI-8367 revert SI-8192's change to primaryConstructor when isJavaDefined