IntelliJ IDEA can't setup JDK
Solution 1:
File
| Invalidate Caches
is the first thing you should try in case of such issues.
Solution 2:
Select your modul in the "Project View" and press F4 in the "Project Setting"select "Module". In the "Module Settings" overview you can add/remove the Modul SDK.