Despite specifying JDK 1.7 in all project settings (including in File -> Project Structure -> Project :: Project SDK), the following error is produced by
File -> Project Structure -> Project :: Project SDK
First, you need to change the "project bytecode version" under File > Settings, Compiler > Java Compiler
File > Settings
Compiler > Java Compiler
Second, do a full rebuild.