void (@NotNull final PyDecoratorStub stub, @NotNull final IndexSink sink) { // Index decorators stub by name (todo: index by FQDN as well!) final QualifiedName qualifiedName = stub.getQualifiedName(); if (qualifiedName != null) { sink.occurrence(PyDecoratorStubIndex.KEY, qualifiedName.toString()); PyCustomDecoratorIndexer.EP_NAME.getExtensionList().forEach(extension -> { String keyForStub = extension.getKeyForStub(stub); if (keyForStub != null) { sink.occurrence(extension.getKey(), keyForStub); } }); } }