Not able to run java 11 sample program in intellij
Java 11 is still very new.
I suspect IntelliJ's caches got corrupted and clearing them should help.
I would also keep Intellij up to date if using such a new JDK.
Same error here, upgraded to intellij 2018.1 and the error was gone.