void (@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())); } }