public static int getBestMatchingDegree(LookupElement element, PrefixMatcher matcher) {
    int max = Integer.MIN_VALUE;
    for (String lookupString : element.getAllLookupStrings()) {
      max = Math.max(max, matcher.matchingDegree(lookupString));
    }
    return max == Integer.MIN_VALUE ? Integer.MAX_VALUE : -max;
  }
public static int getBestMatchingDegree(LookupElement element, PrefixMatcher matcher)