1) Ctrl + Shift + Alt + S
2) Set SDK version to Java 17 or above
3) Apply
1) Ctrl + Alt + S
2) Build, Execution and Deployment -> Build Tools -> Gradle
3) Set Gradle JVM version to Java 17 or above
4) Apply
1) Ctrl + Shift + A
2) Type "Edit configurations"
3) Open it
4) Change Build and run to Java 17 or above, and the classpath to examplemod.main
5) Apply
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.