From a3f044d3add6d1a1e852a770cc025f1223651a02 Mon Sep 17 00:00:00 2001 From: Alexey Kudravtsev Date: Wed, 20 Apr 2016 15:56:58 +0300 Subject: [PATCH] Identifier highligthing pass shows crazy ranges for util.Ref constructor --- .../psi/impl/search/ConstructorReferencesSearchHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/java-indexing-impl/src/com/intellij/psi/impl/search/ConstructorReferencesSearchHelper.java b/java/java-indexing-impl/src/com/intellij/psi/impl/search/ConstructorReferencesSearchHelper.java index 9144206a080d..199412e99615 100644 --- a/java/java-indexing-impl/src/com/intellij/psi/impl/search/ConstructorReferencesSearchHelper.java +++ b/java/java-indexing-impl/src/com/intellij/psi/impl/search/ConstructorReferencesSearchHelper.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2013 JetBrains s.r.o. + * Copyright 2000-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -224,7 +224,7 @@ public class ConstructorReferencesSearchHelper { } } } - if (constructorCanBeCalledImplicitly) { + if (constructorCanBeCalledImplicitly && PsiSearchScopeUtil.isInScope(searchScope, method)) { if (!processImplicitConstructorCall(method, processor, constructor, project, inheritor)) return false; } }