@Override
  public void processQuery(@NotNull SearchParameters p, @NotNull Processor<? super PsiFunctionalExpression> consumer) {
    if (SearchScope.isEmptyScope(ReadAction.compute(() -> p.getEffectiveSearchScope()))) {
      return;
    }
    Session session = ReadAction.compute(() -> new Session(p, consumer));
    session.processResults();
    if (!session.filesLookedInside.isEmpty() && LOG.isDebugEnabled()) {
      LOG.debug(session.toString());
    }
  }
@Override
  public void processQuery(@NotNull SearchParameters p, @NotNull Processor<? super PsiFunctionalExpression> consumer)