Minimal project to reproduce https://youtrack.jetbrains.com/issue/SCL-13087 Just try importing this into IDEA 2017.2 or 2017.3.