diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/vfilefinder/fileIndexes.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/vfilefinder/fileIndexes.kt index 36cafe3f15c..d871317b3a3 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/vfilefinder/fileIndexes.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/vfilefinder/fileIndexes.kt @@ -118,7 +118,7 @@ open class KotlinMetadataFileIndexBase(classOfIndex: Class, indexFunction: if (fileContent.fileType == KotlinBuiltInFileType && fileContent.fileName.endsWith(MetadataPackageFragment.DOT_METADATA_FILE_EXTENSION) ) { - val builtins = BuiltInDefinitionFile.read(fileContent.content, fileContent.file.parent) + val builtins = BuiltInDefinitionFile.read(fileContent.content, fileContent.file) (builtins as? BuiltInDefinitionFile)?.let { builtinDefFile -> val proto = builtinDefFile.proto proto.class_List.singleOrNull()?.let { cls ->