So, what problem are you trying to solve that you don’t seem to have?
Incidentally, if you really wanted to target some optional things at Java 11+, you could read up on multi-release JARs, but I doubt it’s worth the hassle.
I wonder when Processing will support Java 17 that’s released next week?