It's hard to say the integration of JDK on Intellij. The inbedded version is 1.8.0, while it cannot identify any JDK of the version 9 or 10. I have tried 9.0.1 and 10, neither works.
Then if you want it, an SDK of 1.8.* should be installed.
Mark to circumvent this trap for all.
Cheers,
Rui