void (DeclarationDescriptor scopeOwner, @NotNull MemberScope scope, @NotNull DiagnosticCollector collector) { for (DeclarationDescriptor descriptor : DescriptorUtils.getAllDescriptors(scope)) { if (recursiveFilter.test(descriptor)) { descriptor.accept(new ScopeValidatorVisitor(collector), scope); } } }