private static boolean containsNonWhiteSpaceData(@NotNull Document document, int startLine, int endLine) {
    final int start = document.getLineStartOffset(startLine);
    final int end = document.getLineStartOffset(endLine);
    for (int i = start; i < end; i++) {
      if (!DocumentUtil.isLineEmpty(document, i)) {
        return true;
      }
    }
    return false;
  }
private static boolean containsNonWhiteSpaceData(@NotNull Document document, int startLine, int endLine)