@classmethod
def _HasProvideGoogFlag(cls, source):
    """Determines whether the @provideGoog flag is in a comment."""
    for comment_content in cls._COMMENT_REGEX.findall(source):
        if '@provideGoog' in comment_content:
            return True
    return False
