Other jvm languages compile to the byte code and fix this by inlining the optional transparently.
What you mean by “at a language level” would break the byte code for jars compiled with older jdks.
What you mean by “at a language level” would break the byte code for jars compiled with older jdks.