Have you tried the Tracing Agent? https://www.graalvm.org/22.0/reference-manual/native-image/A...
It will track all uses of reflection during a program's execution. You can then use the resultant config as the starting point for the reflect-config.json.