public static ScopeView createJoinedScopesView(IScope parent, IScope underlyingChild) {
return createChildScopeView(underlyingChild, null, parent);
}
public static ScopeView createChildScopeView(IScope underlying, ScopeView publicParent, IScope joinToParentTree) {
ScopesTreeView scopesTree = new ScopesTreeView(underlying.getSurroundingScopes(), joinToParentTree, publicParent, null);
ScopeView result = new ScopeView(underlying, scopesTree);
scopesTree.setScope(result);
return result;
}