@NotNull
  @Override
  public SearchScope getUseScope() {
    final ScopeOwner owner = ScopeUtil.getScopeOwner(this);
    if (owner instanceof PyFunction) {
      return owner.getUseScope();
    }
    return new LocalSearchScope(getContainingFile());
  }
@NotNull
  @Override
  public SearchScope getUseScope()