As you all know, JDK 7 includes new java syntax for Annotations on Types (JSR-308)
To enable JSR-308 support in Maia, set the Java language level level to 7:
Then you can declare and use your weird type annotations almost everywhere:
To enable type annotations compilation in IntelliJ IDEA, do…