void () { buffer.append(rawDocument, index, tmpEdgeIndex); index = tmpEdgeIndex + EDGE_MARKER.length(); edgeIndex = buffer.length(); if (rawDocument.indexOf(EDGE_MARKER, index) >= 0) { throw new IllegalArgumentException(String.format("More than one max preferred offset is found at the document '%s'", rawDocument)); } }