public static int yPositionToLogicalLine(@NotNull Editor editor, @NotNull MouseEvent event) {
    return yPositionToLogicalLine(editor, event.getY());
  }
public static int yPositionToLogicalLine(@NotNull Editor editor, @NotNull MouseEvent event)