@NotNull
    public SearchScope getEffectiveSearchScope () {
      SearchScope scope = myEffectiveScope;
      if (scope == null) {
        if (!myMethod.isValid()) return LocalSearchScope.EMPTY;

        myEffectiveScope = scope = myScope.intersectWith(PsiSearchHelper.getInstance(myMethod.getProject()).getUseScope(myMethod));
      }
      return scope;
    }
@NotNull
    public SearchScope getEffectiveSearchScope ()