@Override
  public @NotNull PsiElementVisitor buildVisitor(@NotNull ProblemsHolder holder,
                                                 boolean isOnTheFly,
                                                 @NotNull LocalInspectionToolSession session) {
    if (!(holder.getFile() instanceof PyFile) && !isPythonInTemplateLanguages(holder.getFile())) {
      return PsiElementVisitor.EMPTY_VISITOR;
    }
    return new Visitor(holder, ignoredPackages, PyInspectionVisitor.getContext(session));
  }
@Override
  public @NotNull PsiElementVisitor buildVisitor(@NotNull ProblemsHolder holder,
                                                 boolean isOnTheFly,
                                                 @NotNull LocalInspectionToolSession session)