static L extractMarkedLines(S text, BitSet marking) { new L l; L indexes = lineStartIndexes(text); for (int i : indexes) { int j = smartIndexOf(text, "\n", i); if (anyBitSetInRange(marking, i, j+1)) l.add(substring(text, i, j)); } ret l; }