sS indentStructureString_firstLevels(int levelsToIndent, S s) {
  if (s == null) null;
  LS tok = javaTokForStructure(s);
  new StringBuilder buf;
  int level = 0;
  for i over tok: {
    S t = tok.get(i);
    if (isOpeningBracket(t)) {
      int j = i+5;
      if (containsClosingBracket(subList(tok, i+2, i+5))) {
        buf.append(joinSubList(tok, i, j));
        i = j-1;
      } else {
        buf.append(t);
        ++level;
        if (level <= levelsToIndent)
          buf.append("\n").append(spaces(level*2));
      }
    } else if (isClosingBracket(t)) {
      if (level-- <= levelsToIndent)
        buf.append("\n").append(spaces(level*2));
      buf.append(t);
    } else if (eq(t, ",")) {
      buf.append(t);
      if (level <= levelsToIndent)
        buf.append("\n").append(spaces(level*2));
      i++;
    } else
      buf.append(t);
  }
  ret str(buf);
}