If for some random reasons, after a JDK update from SDKman, all kotlin projects fail to compile/run in Intellij, double check that the JDK has the correct path in ~/.config/JetBrains/IntelliJIdeaXXXX.x/options/jdk.table
- shutdown intellij
- Edit this file with the correct path
- Enjoy