def METHOD_NAME(self) -> list[_CompileCommandsEntry]:
    cmdspath = '.cache/compile_commands_db/compile_commands.json'
    if not os.path.isfile(cmdspath):
        raise CleanError(
            f'Compile-commands not found at "{cmdspath}".'
            f' do you have the irony build db enabled? (see Makefile)'
        )
    with open(cmdspath, encoding='utf-8') as infile:
        cmdsraw = json.loads(infile.read())
    if not isinstance(cmdsraw, list):
        raise CleanError(
            f'Expected list for compile-commands;'
            f' found {type(cmdsraw)}.'
        )
    return [dataclass_from_dict(_CompileCommandsEntry, e) for e in cmdsraw]