private static void registerProblem(ProblemsHolder holder, HighlightInfo info, PsiElement e) {
        if (info.getSeverity() == HighlightSeverity.ERROR) {
          holder.registerProblem(e, info.getDescription());
        }
      }
private static void registerProblem(ProblemsHolder holder, HighlightInfo info, PsiElement e)