You should add below code in your pom.xml to force the language level to change
org.apache.maven.pluginsmaven-compiler-plugin88
now intelliJ 2019.3 CE does this for you if you go to import then alt+enter where you will get an option saying "change language level to 8 to use this functionality"