cef7205f14
FileContentImpl::getPsiFile is not-nullable and at the same time it contains an explicit case of its fileType to LanguageFileType that leads to the following exception in case when kt-file is marked as plain text: java.lang.ClassCastException: com.intellij.openapi.file.exclude.EnforcedPlainTextFileTypeFactory$1 cannot be cast to com.intellij.openapi.fileTypes.LanguageFileType at com.intellij.util.indexing.FileContentImpl.createFileFromText(FileContentImpl.java:135) at com.intellij.util.indexing.FileContentImpl.getPsiFile(FileContentImpl.java:104) #EA-114338 Fixed