@Override
  public void processQuery(@NotNull ReferencesSearch.SearchParameters queryParameters, @NotNull Processor<? super PsiReference> consumer) {
    PsiElement element = queryParameters.getElementToSearch();
    if (element instanceof PsiRecordComponent recordComponent) {
      SearchScope scope = queryParameters.getEffectiveSearchScope();
      RecordNavigationInfo info = findNavigationInfo(recordComponent);
      if (info != null) {
        SearchRequestCollector optimizer = queryParameters.getOptimizer();
        optimizer.searchWord(info.myName,
                             ReadAction.compute(() -> info.myLightMethod.getUseScope().intersectWith(scope)),
                             true,
                             info.myLightMethod);

        optimizer.searchWord(info.myName,
                             ReadAction.compute(() -> info.myLightField.getUseScope().intersectWith(scope)),
                             true,
                             info.myLightField);

        PsiParameter parameter = info.myLightCompactConstructorParameter;
        if (parameter != null) {
          optimizer.searchWord(info.myName,
                               ReadAction.compute(() -> new LocalSearchScope(parameter.getDeclarationScope())),
                               true,
                               parameter);
        }
      }
    }
  }
@Override
  public void processQuery(@NotNull ReferencesSearch.SearchParameters queryParameters, @NotNull Processor<? super PsiReference> consumer)