void (@NotNull KotlinFileStub stub, @NotNull IndexSink sink) { FqName packageFqName = stub.getPackageFqName(); sink.occurrence(KotlinExactPackagesIndex.NAME, packageFqName.asString()); if (stub.isScript()) return; FqName facadeFqName = ((KotlinFileStubImpl) stub).getFacadeFqName(); if (facadeFqName != null) { sink.occurrence(KotlinFileFacadeFqNameIndex.Helper.getIndexKey(), facadeFqName.asString()); sink.occurrence(KotlinFileFacadeShortNameIndex.Helper.getIndexKey(), facadeFqName.shortName().asString()); sink.occurrence(KotlinFileFacadeClassByPackageIndex.Helper.getIndexKey(), packageFqName.asString()); } FqName partFqName = ((KotlinFileStubImpl) stub).getPartFqName(); if (partFqName != null) { sink.occurrence(KotlinFilePartClassIndex.Helper.getIndexKey(), partFqName.asString()); } List<String> partNames = ((KotlinFileStubImpl) stub).getFacadePartSimpleNames(); if (partNames != null) { for (String partName : partNames) { if (partName == null) { continue; } FqName multiFileClassPartFqName = packageFqName.child(Name.identifier(partName)); sink.occurrence(KotlinMultiFileClassPartIndex.Helper.getIndexKey(), multiFileClassPartFqName.asString()); } } }