public int findLine(int offset){
  int line=lineStarts.length - 1;
  while ((lineStarts[line] > offset) && (line > 0)) {
    line--;
  }
  return line;
}

public int findLine ( int offset ) { int line = lineStarts . length - 1 ; while ( ( lineStarts [ line ] > offset ) && ( line > 0 ) ) { line -- ; } return line ; }
line in the original source file for the given offset .
