int (@NotNull String name, boolean valueStartCaseMatch) { FList<TextRange> mainRanges = myMainMatcher.matchingFragments(name); boolean useMainRanges = mainRanges != null && !mainRanges.isEmpty() || myFallbackMatcher == null; return useMainRanges ? myMainMatcher.matchingDegree(name, valueStartCaseMatch, mainRanges) : myFallbackMatcher.matchingDegree(name, valueStartCaseMatch); }