Check the javac settings under: Settings -> Build, Execution, Deployment -> Compiler -> Java Compiler.