Checks whether given class or method has been marked
        with the ``@final`` decorator.

def _is_final(meta, arg):
        """Checks whether given class or method has been marked
        with the ``@final`` decorator.
        """
        if inspect.isclass(arg) and not isinstance(arg, ObjectMetaclass):
            return False  # of classes, only subclasses of Object can be final

        # account for method wrappers, such as the one introduced by @override
        from taipan.objective.modifiers import _WrappedMethod
        if isinstance(arg, _WrappedMethod):
            arg = arg.method

        return getattr(arg, '__final__', False)