private static int getLeadSelectionIndexIfSelectionIsNotEmpty(ListSelectionModel lsm) {
      return lsm != null && !lsm.isSelectionEmpty() ? lsm.getLeadSelectionIndex() : -1;
    }
private static int getLeadSelectionIndexIfSelectionIsNotEmpty(ListSelectionModel lsm)