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: Optional[str] = generate_resource_key_recursive(start_line, end_line, self.definitions[file_path])
    return resource_name if resource_name else key