public static bool IsRepetitionTypes(this DisplayFilterRowInfo rowInfo, DisplayFilterSettings settings) { var success = rowInfo.IsRepetitionsAll(settings) || rowInfo.IsRepetitionsFirstOccurrences(settings) || rowInfo.IsRepetitionsExcludingFirstOccurrences(settings); if (!success) { success = rowInfo.IsUniqueRepetition(settings); } return(success); }