public static void addNewSheetRecord(List<RecordBase> sheetRecords, RecordBase newRecord) {int index = findSheetInsertPos(sheetRecords, newRecord.getClass());sheetRecords.add(index, newRecord);}

public static void addNewSheetRecord ( List < RecordBase > sheetRecords , RecordBase newRecord ) { int index = findSheetInsertPos ( sheetRecords , newRecord . getClass ( ) ) ; sheetRecords . add ( index , newRecord ) ; }
public static void AddNewSheetRecord(List<RecordBase> sheetRecords, RecordBase newRecord){int index = FindSheetInsertPos(sheetRecords, newRecord.GetType());sheetRecords.Insert(index, newRecord);}
