working around intellij version issues with java 8