public static boolean contains(Scope outer,Scope inner){
  if (outer != null) {
    while (inner != null) {
      if (inner.equals(outer)) {
        return true;
      }
      inner=inner.getScope();
    }
  }
  return false;
}

public static boolean contains ( Scope outer , Scope inner ) { if ( outer != null ) { while ( inner != null ) { if ( inner . equals ( outer ) ) { return true ; } inner = inner . getScope ( ) ; } } return false ; }
is the second scope contained by the first scope ?
