protected void genIsSingle() {
private void genIsSingle() {
    protected void genIsSingle() {        println("  public boolean isSingle() {");        println("    return !isEmpty() && getNext().isEmpty();");        println("  }");        println();    }