I cannot add jdk11 and jdk13 in intelliJ as SDK. I am able to add jdk-18.0_22 only.
Why is that so?
Based on the comment from @MarsAtomic, I would guess that your version of Intellij (14.1.4) is too old to use the new versions of java.
14.1.* was last released on May 11, 2016.
The implication of Java 11 in IntelliJ IDEA 2018.2 is that you need to use Intellij IDEA 2018.2 or later to work with Java 11.
I expect that one reason that your older Intellij install is not recognizing your Java 11 or Java 13 install is that the JDK classes are packaged differently starting with Java 9.
For support of Java 13 preview features you will need IntelliJ IDEA 2019.2