@Override
  public boolean hasNestedScopes() {
    if (myNestedScopes == null) {
      collectDeclarations();
    }
    return !myNestedScopes.isEmpty();
  }
@Override
  public boolean hasNestedScopes()