@Override
  public boolean processMethodsWithName(@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;
  }
@Override
  public boolean processMethodsWithName(@NotNull Predicate<String> namePredicate,
                                        @NotNull Processor<? super PsiMethod> processor,
                                        @NotNull GlobalSearchScope scope,
                                        @Nullable IdFilter filter)