static L subList_cloneIfDifferent(L l, int startIndex, int endIndex) { L l2 = subList(l, startIndex, endIndex); ret l == l2 ? l : cloneList(l2); } static L subList_cloneIfDifferent(L l, int startIndex) { L l2 = subList(l, startIndex); ret l == l2 ? l : cloneList(l2); }