def _final_is_class_declaration(line):
    """Checks whether the line containing `final` modifier is a class declaration.

    Returns `False` for the lines containing no `final` modifier.

    Args:
        line: the line to check.

    Returns:
        bool: `True` if the line is class declaration, `False` otherwise.
    """
    return 'final class ' in line