protected void genHasHeadMethod() {
private void genHasHeadMethod() {
    protected void genHasHeadMethod() {        println("  public boolean hasHead() {");        println("    return !isEmpty();");        println("  }");        println();    }