private static @NonNls String showFirstItemIfAny(List<String> list) {
    switch (list.size()) {
      case 0: return "[]";
      case 1: return "[" + list.get(0) + "]";
      default: return "[" + list.get(0) + " and " + (list.size() - 1) + " more]";
    }
  }
private static @NonNls String showFirstItemIfAny(List<String> list)