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