@Override
    public void afterValueChanged(@NotNull RegistryValue value) {
      if (!"ide.highlighting.mode.essential".equals(value.getKey())) {
        return;
      }

      for (Project project : ProjectManagerEx.Companion.getOpenProjects()) {
        HighlightingSettingsPerFile.getInstance(project).incModificationCount();

        FileEditor[] allEditors = FileEditorManager.getInstance(project).getAllEditors();
        if (allEditors.length == 0) {
          return;
        }

        PsiDocumentManager psiDocumentManager = PsiDocumentManager.getInstance(project);
        ErrorStripeUpdateManager stripeUpdateManager = getInstance(project);
        for (FileEditor fileEditor : allEditors) {
          if (fileEditor instanceof TextEditor textEditor) {
            Editor editor = textEditor.getEditor();
            stripeUpdateManager.repaintErrorStripePanel(editor, psiDocumentManager.getCachedPsiFile(editor.getDocument()));
          }
        }

        // Run all checks after disabling essential highlighting
        if (!value.asBoolean()) {
          ((DaemonCodeAnalyzerImpl)DaemonCodeAnalyzer.getInstance(project)).restartToCompleteEssentialHighlighting();
        }
      }
    }
@Override
    public void afterValueChanged(@NotNull RegistryValue value)