void (@NotNull TextEditorHighlightingPassRegistrar registrar, @NotNull Project project) { boolean serialized = Registry.is("editor.injected.highlighting.serialization.allowed") && ((TextEditorHighlightingPassRegistrarImpl)registrar).isSerializeCodeInsightPasses(); int[] runAfterCompletionOf = serialized ? new int[]{Pass.UPDATE_ALL} : null; int[] runAfterStartingOf = serialized ? null : new int[]{Pass.UPDATE_ALL}; registrar.registerTextEditorHighlightingPass(this, runAfterCompletionOf, runAfterStartingOf, false, -1); }