From e70610cc7f8af75ff21efb95f3284c3164ed0a10 Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Tue, 10 Mar 2020 12:16:19 +0300 Subject: [PATCH] IDEA-CR-59549 review fixes GitOrigin-RevId: 4ec7266a3d3a439a8e40e5c649a62db4dc8cf2c4 --- .../daemon/impl/IdentifierHighlighterPass.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IdentifierHighlighterPass.java b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IdentifierHighlighterPass.java index 9ce077890516..02e548c8e903 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IdentifierHighlighterPass.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/daemon/impl/IdentifierHighlighterPass.java @@ -143,17 +143,7 @@ public class IdentifierHighlighterPass extends TextEditorHighlightingPass { private void collectCodeBlockMarkerRanges() { PsiElement contextElement = myFile.findElementAt( TargetElementUtil.adjustOffset(myFile, myEditor.getDocument(), myEditor.getCaretModel().getOffset())); - if (contextElement == null) { - return; - } - - for (CodeBlockSupportHandler handler : CodeBlockSupportHandler.EP.allForLanguage(contextElement.getLanguage())) { - List rangesToHighlight = handler.getCodeBlockMarkerRanges(contextElement); - if (!rangesToHighlight.isEmpty()) { - myCodeBlockMarkerRanges.addAll(rangesToHighlight); - return; - } - } + myCodeBlockMarkerRanges.addAll(CodeBlockSupportHandler.findMarkersRanges(contextElement)); } /**