private boolean isExistLineWithTooLargeLength() {
    Document document = documentOfPagesModel.getDocument();
    int lineCount = document.getLineCount();
    for (int i = 0; i < lineCount; i++) {
      int lineWidth = document.getLineEndOffset(i) - document.getLineStartOffset(i);
      if (lineWidth > MAX_AVAILABLE_LINE_LENGTH) {
        return true;
      }
    }
    return false;
  }
private boolean isExistLineWithTooLargeLength()