public static Cons javaReverseAndConsolidateStrings(Cons items) {
    if (items == Stella.NIL) {
      return (Stella.NIL);
    }
    { Cons outputItems = Stella.NIL;
      Cons lastItem = ((Cons)(items.value));

      { Cons newItem = null;
        Cons iter000 = items.rest;

        for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
          newItem = ((Cons)(iter000.value));
          if (Cons.javaLiteralStringP(newItem)) {
            if (Cons.javaLiteralStringP(lastItem)) {
              lastItem = Cons.list$(Cons.cons(Stella.SYM_STELLA_JAVA_LITERAL, Cons.cons(StringWrapper.wrapString(((StringWrapper)(newItem.rest.value)).wrapperValue + ((StringWrapper)(lastItem.rest.value)).wrapperValue), Cons.cons(Stella.NIL, Stella.NIL))));
            }
            else {
              {
                outputItems = Cons.cons(lastItem, outputItems);
                lastItem = newItem;
              }
            }
          }
          else {
            {
              outputItems = Cons.cons(lastItem, outputItems);
              lastItem = newItem;
            }
          }
        }
      }
      outputItems = Cons.cons(lastItem, outputItems);
      return (outputItems);
    }
  }