def METHOD_NAME(self) -> Iterator[Diagnostic]:
    """ Checks if definition file overrides its parents settings with the same value. """
    definition_name = list(self._definitions.keys())[0]
    definition = self._definitions[definition_name]
    if "overrides" in definition and definition_name not in ("fdmprinter", "fdmextruder"):
        for key, value_dict in definition["overrides"].items():
            is_redefined, child_key, child_value, parent = self._isDefinedInParent(key, value_dict, definition['inherits'])
            if is_redefined:
                redefined = re.compile(r'.*(\"' + key + r'\"[\s\:\S]*?)\{[\s\S]*?\},?')
                found = redefined.search(self._content)
                # TODO: Figure out a way to support multiline fixes in the PR review GH Action, for now suggest no fix to ensure no ill-formed json are created
                #  see: https://github.com/platisd/clang-tidy-pr-comments/issues/37
                if len(found.group().splitlines()) > 1:
                    replacements = []
                else:
                    replacements = [Replacement(
                        file = self._file,
                        offset = found.span(1)[0],
                        length = len(found.group()),
                        replacement_text = "")]
                yield Diagnostic(
                    file = self._file,
                    diagnostic_name = "diagnostic-definition-redundant-override",
                    message = f"Overriding {key} with the same value ({child_key}: {child_value}) as defined in parent definition: {definition['inherits']}",
                    level = "Warning",
                    offset = found.span(0)[0],
                    replacements = replacements
                )