def METHOD_NAME(
    self,
    file_path: str,
    key: str,
    supported_entities: Iterable[str],
    start_line: int = -1,
    end_line: int = -1,
    graph_resource: bool = False,
) -> str:
    if not self.definitions or not isinstance(self.definitions, dict):
        return key
    resource_name = self.generate_resource_name(start_line, end_line, self.definitions[file_path])
    return resource_name if resource_name else key