Cannot start analysis - the JDK is not specified for selected modules (IntelliJ IDEA)

If you see this message in IntelliJ IDEA:

  1. Go to File > Project Structure.
  2. Specify your Project JDK.