void (@NotNull final CompletionParameters parameters, @NotNull final PrefixMatcher prefixMatcher, final boolean filterByScope, @NotNull final Consumer<? super PsiClass> consumer) { final PsiElement context = parameters.getPosition(); final Project project = context.getProject(); final GlobalSearchScope scope = filterByScope ? context.getContainingFile().getResolveScope() : GlobalSearchScope.allScope(project); processJavaClasses(prefixMatcher, project, scope, new LimitedAccessibleClassPreprocessor(parameters, filterByScope, c->{consumer.consume(c); return true;})); }