I worked on bytecode analysis for constructors in the past. You might find this useful: https://github.com/hibernate/hibernate-orm/commit/eafb3cc31eb8d765779aa1a1e5b6abb118896e20