void (SoftWrapImpl softWrap) { if (myWraps.isEmpty()) return; int i = myWraps.size() - 1; // expected use case is removing of last soft wrap, so we have a fast path here for that case if (myWraps.get(i).getStart() != softWrap.getStart()) { i = getSoftWrapIndex(softWrap.getStart()); } if (i >= 0) { myWraps.remove(i); } }