We have a project using libgdx that we are testing on a desktop with a plain JVM. We are using jdk8 because 6 is deprecated, but we want to target later to android and not to use APIs not available in android. It is possible to use jdk8 with intellij/kotlin but limit available APIs to jre6 so we are sure we are not using unavailable APIs on desktop?