To configure Gradle using the version 16 of Java.
To use the most recent version check the Project Preferences, and the JAVA_HOME because for deafult IntelliJ doesn't change for the most recent version, you need to change
An it's important set Java 16 on the menu Preferences > Build, Excecution, Deployment > Gradle
Prefer to use sdkman to manage the JDK's and for Automation Compilators