public static int getOccurrencesCount(@NotNull PsiFile file, @NotNull IndexPatternProvider patternProvider) {
    return getInstance().getOccurrencesCountImpl(file, patternProvider);
  }
public static int getOccurrencesCount(@NotNull PsiFile file, @NotNull IndexPatternProvider patternProvider)