@Override
  public @NotNull GlobalSearchScope getResolveScope() {
    assert isValid();
    return ResolveScopeManager.getElementResolveScope(this);
  }
@Override
  public @NotNull GlobalSearchScope getResolveScope()