public final void addToTiersByVarNames(List<String> varNames){
  if (!variables.containsAll(varNames)) {
    for (    String varName : varNames) {
      addVariable(varName);
    }
  }
  for (  Object varName : varNames) {
    String node=(String)varName;
    int index=node.lastIndexOf(":t");
    if (index != -1) {
      String substring=node.substring(index + 2);
      addToTier(new Integer(substring),node);
    }
  }
}

public final void addToTiersByVarNames ( List < String > varNames ) { if ( ! variables . containsAll ( varNames ) ) { for ( String varName : varNames ) { addVariable ( varName ) ; } } for ( Object varName : varNames ) { String node = ( String ) varName ; int index = node . lastIndexOf ( ":t" ) ; if ( index != - 1 ) { String substring = node . substring ( index + 2 ) ; addToTier ( new Integer ( substring ) , node ) ; } } }
puts a variable into tier i if its name is xxx : i for some xxx and some i .
