private void calculateMaxLevel() {
    if (tree.getRules() == null) {
      LOG.debug("No rules set for this tree");
      return;
    }
    
    for (Integer level : tree.getRules().keySet()) {
      if (level > max_rule_level) {
        max_rule_level = level;
      }
    }
  }
private void calculateMaxLevel ( ) { if ( tree . getRules ( ) == null ) { LOG . debug ( "No rules set for this tree" ) ; return ; } for ( Integer level : tree . getRules ( ) . keySet ( ) ) { if ( level > max_rule_level ) { max_rule_level = level ; } } }
Helper method that iterates through the first dimension of the rules map
to determine the highest level (or key) and stores it to
{@code max_rule_level}