Set IDEA language level to 1.6 and JDK name to 1.8