This commit updates the existing logic to also exclude code generation in the javax package. Closes gh-29123