public static ILogProcessor GetCorrectProcessorForImportedSheet(Worksheet sheet) { // Go through our log processors and return the correct one for this sheet foreach (LogType logType in Enum.GetValues(typeof(LogType))) { ILogProcessor processor = CreateProcessor(logType); if (processor != null && processor.IsThisLog(sheet)) { return(processor); } } return(null); }