Add is_declared_class_of_its_method.