void (@NotNull Processor<? super PsiElement> processor) { final PsiScopeProcessor scopeProcessor = new PsiScopeProcessor() { @Override public boolean execute(@NotNull PsiElement element, @NotNull ResolveState state) { return processor.process(element); } }; processMembers(scopeProcessor, EmptyRunnable.getInstance()); }