Appears in Intellij: Diamond types are not supported at this language level
1. Solution
File->project
-> Modules
-> Source
-> Language Leve
-> 8-Lambda,type annotation etc.
File->project
-> Projectä¸
-> project Language Level
-> 8-Lambda,type annotation etc.
Settings
-> Build,execution,Deployment
-> Compiler
->Java Compiler