The editor does not recognize my version of Java

I have Java 23 installed. I have specified Java 23 in all possible settings. But in the code editor it does not recognize the syntax of this version and asks to upgrade the Java version.

I don’t know what else to do. Help.

Solved the problems by re-creating the project