private boolean accept(@NotNull U object) {
      String name = myNamer.fun(object);
      if (name == null) return false;

      Iterable<TextRange> matchingFragments = mySpeedSearch.matchingFragments(name);
      if (mySpeedSearch instanceof FilteringTreeUserObjectMatcher filteringTreeSpeedSearch) {
        //noinspection unchecked
        return filteringTreeSpeedSearch.checkMatching(object, matchingFragments) != Matching.NONE;
      } else {
        return matchingFragments != null;
      }
    }
private boolean accept(@NotNull U object)