@Override
  public void processQuery(@NotNull ReferencesSearch.SearchParameters queryParameters, @NotNull Processor consumer) {
    PsiElement refElement = queryParameters.getElementToSearch();

    if (refElement instanceof PsiField) {
      DumbService.getInstance(queryParameters.getProject()).runReadActionInSmartMode(() ->
        processPsiField((PsiField) refElement, queryParameters.getOptimizer()));
    }
  }
@Override
  public void processQuery(@NotNull ReferencesSearch.SearchParameters queryParameters, @NotNull Processor consumer)