code: private boolean containsCloudTrailLogs(CloudTrailSource ctSource) {
          SourceType sourceType = SourceType.valueOf(ctSource.getSourceAttributes().get(SourceAttributeKeys.SOURCE_TYPE.getAttributeKey()));
          switch(sourceType) {
              case CloudTrailLog:
                  return true;
              case CloudTrailValidationMessage:
                  logger.warn(String.format("Delete CloudTrail validation message: %s.", ctSource.toString()));
                  return false;
              case Other:
              default:
                  logger.info(String.format("Skip Non CloudTrail Log File: %s.", ctSource.toString()));
                  return false;
          }
      }
docs: Check whether <code>ctSource</code> contains CloudTrail log files.
  @param ctSource a {@link CloudTrailSource}.
  @return <code>true</code> if contains CloudTrail log files, <code>false</code> otherwise.