protected void genHasTailMethod() {
private void genHasTailMethod() {
    protected void genHasTailMethod() {        println("  public boolean hasTail() {");        println("    return !isEmpty();");        println("  }");        println();    }