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