How to initialize CompilerConfiguration in order to perform JSR223 Scripting?

When I try to perform JSR223 Compliant Scripting with the new Kotlin versions, I get an error

ERROR @NotNull method org/jetbrains/kotlin/config/CompilerConfiguration.getNotNull must not return null:

that seems something is not inited properly.

In older Kotlin versions my JSR223 based code worked properly.

What happens?