[macos] How do I check if the Java JDK is installed on Mac?

Make sure you correctly define the project's JDK and restart IntelliJ (full restart).