boolean (@NotNull Predicate<String> namePredicate, @NotNull Processor<? super PsiMethod> processor, @NotNull GlobalSearchScope scope, @Nullable IdFilter filter) { JavaStaticMemberNameIndex index = JavaStaticMemberNameIndex.getInstance(); Collection<String> memberNames = index.getAllKeys(myProject); for (String memberName : memberNames) { if (namePredicate.test(memberName)) { Collection<PsiMember> members = index.getStaticMembers(memberName, myProject, scope); for (PsiMember member : members) { if (member instanceof PsiMethod method) { if (!processor.process(method)) { return false; } } } } } return true; }