You need to configure the Project Structure settings within the IDE.
First, ensure IntelliJ IDEA recognizes the newly installed JDK:
Open IntelliJ IDEA.
Go to File > Project Structure (or press Ctrl+Alt+Shift+S on Windows/Linux).
In the Project Structure dialog, under Platform Settings, select SDKs.
Click the plus (+) icon and select Add JDK from disk....
Navigate to the installation directory of your JDK 25 (e.g., C:\Program Files\Java\jdk-25) and click OK.
IntelliJ IDEA will add the JDK to its list of available SDKs. Click Apply and then OK.