void (@NotNull KotlinPropertyStub stub, @NotNull IndexSink sink) { String name = stub.getName(); if (name != null) { sink.occurrence(KotlinPropertyShortNameIndex.Helper.getIndexKey(), name); if (IndexUtilsKt.isDeclaredInObject(stub)) { IndexUtilsKt.indexExtensionInObject(stub, sink); } KtTypeReference typeReference = stub.getPsi().getTypeReference(); if (typeReference != null && KotlinPsiHeuristics.isProbablyNothing(typeReference)) { sink.occurrence(KotlinProbablyNothingPropertyShortNameIndex.Helper.getIndexKey(), name); } indexPrime(stub, sink); } if (stub.isTopLevel()) { FqName fqName = stub.getFqName(); // can have special fq name in case of syntactically incorrect property with no name if (fqName != null) { sink.occurrence(KotlinTopLevelPropertyFqnNameIndex.Helper.getIndexKey(), fqName.asString()); sink.occurrence(KotlinTopLevelPropertyByPackageIndex.Helper.getIndexKey(), fqName.parent().asString()); IndexUtilsKt.indexTopLevelExtension(stub, sink); } } IndexUtilsKt.indexInternals(stub, sink); }