private static void checkJavaModule(@NotNull PsiJavaModule javaModule, @NotNull ProblemsHolder holder) {
    if (!PsiImplUtil.isDeprecated(javaModule)) {
      return;
    }
    PsiSearchHelper searchHelper = PsiSearchHelper.getInstance(javaModule.getProject());
    ThreeState state = hasUsages(javaModule, javaModule.getName(), searchHelper, javaModule.getUseScope());
    if (state == ThreeState.YES) {
      holder.registerProblem(javaModule.getNameIdentifier(),
                             JavaAnalysisBundle.message("deprecated.member.0.is.still.used", javaModule.getName()));
    }
    else if (state == ThreeState.UNSURE) {
      holder.registerPossibleProblem(javaModule.getNameIdentifier());
    }
  }
private static void checkJavaModule(@NotNull PsiJavaModule javaModule, @NotNull ProblemsHolder holder)