SearchScope () { SearchScope scope = myEffectiveScope; if (scope == null) { if (!myMethod.isValid()) return LocalSearchScope.EMPTY; myEffectiveScope = scope = myScope.intersectWith(PsiSearchHelper.getInstance(myMethod.getProject()).getUseScope(myMethod)); } return scope; }