MatchResult (@NotNull MinusculeMatcher matcher, @NotNull String name) { FList<TextRange> fragments = matcher.matchingFragments(name); return fragments != null ? new MatchResult(name, matcher.matchingDegree(name, false, fragments), MinusculeMatcher.isStartMatch(fragments)) : null; }