void (int index1, int index2) { int start1 = index1 == -1 ? 0 : getEndOffset1(index1); int start2 = index2 == -1 ? 0 : getEndOffset2(index2); int end1 = index1 + 1 == myWords1.size() ? myLen1 : getStartOffset1(index1 + 1); int end2 = index2 + 1 == myWords2.size() ? myLen2 : getStartOffset2(index2 + 1); matchForward(start1, start2, end1, end2); }