This code compiles fine, but is marked as an error by IntelliJ, which is kind of annoying...