void (@NotNull KotlinAnnotationEntryStub stub, @NotNull IndexSink sink) { String name = stub.getShortName(); if (name == null) { return; } sink.occurrence(KotlinAnnotationsIndex.Helper.getIndexKey(), name); KotlinFileStub fileStub = KotlinStubUtils.getContainingKotlinFileStub(stub); if (fileStub != null) { List<KotlinImportDirectiveStub> aliasImportStubs = fileStub.findImportsByAlias(name); for (KotlinImportDirectiveStub importStub : aliasImportStubs) { FqName importedFqName = importStub.getImportedFqName(); if (importedFqName != null) { sink.occurrence(KotlinAnnotationsIndex.Helper.getIndexKey(), importedFqName.shortName().asString()); } } } IndexUtilsKt.indexJvmNameAnnotation(stub, sink); }