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 3bed15b4e94a..2798fa3ec3bc 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 @@ -58,18 +58,17 @@ public class IdentifierHighlighterPass extends TextEditorHighlightingPass { private final Collection myReadAccessRanges = Collections.synchronizedList(new ArrayList()); private final Collection myWriteAccessRanges = Collections.synchronizedList(new ArrayList()); private final int myCaretOffset; - private final HighlightUsagesHandlerBase myHighlightUsagesHandler; IdentifierHighlighterPass(@NotNull Project project, @NotNull PsiFile file, @NotNull Editor editor) { super(project, editor.getDocument(), false); myFile = file; myEditor = editor; myCaretOffset = myEditor.getCaretModel().getOffset(); - myHighlightUsagesHandler = HighlightUsagesHandler.createCustomHandler(myEditor, myFile); } @Override public void doCollectInformation(@NotNull final ProgressIndicator progress) { + HighlightUsagesHandlerBase myHighlightUsagesHandler = HighlightUsagesHandler.createCustomHandler(myEditor, myFile); if (myHighlightUsagesHandler != null) { List targets = myHighlightUsagesHandler.getTargets(); myHighlightUsagesHandler.computeUsages(targets);