LanguageLevel () { PsiClassHolderFileStub<?> stub = getStub(); if (stub instanceof PsiJavaFileStub) { LanguageLevel level = ((PsiJavaFileStub)stub).getLanguageLevel(); if (level != null) { return level; } } return LanguageLevel.HIGHEST; }