KotlinFileStub (@NotNull KtFile file) { String packageFqName =file.getPackageFqNameByTree().asString(); boolean isScript = file.isScriptByTree(); if (file.hasTopLevelCallables()) { JvmFileClassInfo fileClassInfo = JvmFileClassUtil.getFileClassInfoNoResolve(file); String facadeFqNameRef = fileClassInfo.getFacadeClassFqName().asString(); String partSimpleName = fileClassInfo.getFileClassFqName().shortName().asString(); return new KotlinFileStubImpl(file, packageFqName, isScript, facadeFqNameRef, partSimpleName, null); } return new KotlinFileStubImpl(file, packageFqName, isScript, null, null, null); }