I have the following program:
module-info.java
module a { }
Main.java
public clas
Go to the File menu -> [Settings] -> [Build, Execution, Deployment] -> [Java Compiler] and select your JDK version. (Make sure it is higher than JDK 11)