private boolean fillCoordinateFromXY(int x, int y, CodeDisplayCoordinate newCoordinate) {
    Map.Entry<Integer, CodeDisplayCoordinate> coordinate = yCoordinateToRowAndLine.floorEntry(y);
    if (coordinate == null) {
      // If the click went outside the last row or behind the last column, return an appropriate
      // coordinate.
      newCoordinate.setRow(2);
      newCoordinate.setColumn(1);
      return true;
    }
    newCoordinate.setRow(coordinate.getValue().getRow());
    newCoordinate.setLine(coordinate.getValue().getLine());
    return fillColumnAndFieldIndexFromX(x, newCoordinate);
  }
Given a position on the screen, calculate what row / cell / line a given coordinate obtained
from an event falls into.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/CodeDisplay/CodeDisplay.java