private static int getStartLineNumber(Document document, TextRange textRange) {
    return document.getLineNumber(textRange.getStartOffset());
  }
private static int getStartLineNumber(Document document, TextRange textRange)