def _contains_access_modifier(line):
    """Checks whether the line contains some Java access modifier in it.

    Args:
        line: the line to check.

    Returns:
        bool: `True` if the line contains access modifier and `False` otherwise.
    """
    return 'public ' in line or 'private ' in line or 'protected ' in line