On the project, right-click, select Open Module Se...
# announcements
j
On the project, right-click, select Open Module Settings, there you need to set the language level on both source and make sure you have the right SDK on dependencies