void (Document document, int lineEnd) { CharSequence documentChars = document.getCharsSequence(); int start = Holder.JSON_START_MATCHER.indexIn(documentChars, lineStart); if (start < 0) { return; } int end = -1; for (int i = lineEnd - 1; i > start; i--) { if (documentChars.charAt(i) == '}') { end = i; break; } }