def _IsLimitedDocCheck(filename, limited_doc_files):
    """Whether this this a limited-doc file.

    Args:
      filename: The filename.
      limited_doc_files: Iterable of strings. Suffixes of filenames that should
        be limited doc check.

    Returns:
      Whether the file should be limited check.
    """
    for limited_doc_filename in limited_doc_files:
        if filename.endswith(limited_doc_filename):
            return True
    return False