I downloaded OpenJDK11 source code and tried to set it up in Intellij IDEA(version 2022.1.3) with JDK correto-11.
When I build the project, an error says: "java: package exists in another module: java.base" as shown below.
Does anyone have any idea how to fix it? Thanks a lot.

I often fix this by deleting the conflicting module. Usually it's brought in as a transitive dependency.
In my case, my main package uses JDK11, but the transitive dependency uses JDK8 and bundled some Java8 source code into itself. Furthermore, it was unused because that library only contained some model code.
In my case, it's usually something like
generated-src/java.baseorgenerated-src/java.timeTL;DR = try deleting that
src/java.baseand see if IntelliJ will happily build.