def METHOD_NAME(self) -> Set[str]:
    logger.info("Getting all matrices used in variant studies")
    command_blocks: List[CommandBlock] = self.variant_study_service.repository.get_all_commandblocks()
    def transform_to_command(command_dto: CommandDTO, study_ref: str) -> List[ICommand]:
        try:
            return self.variant_study_service.command_factory.to_command(command_dto)
        except Exception as e:
            logger.warning(
                f"Failed to parse command {command_dto} (from study {study_ref}) !",
                exc_info=e,
            )
        return []
    variant_study_commands = [cmd for c in command_blocks for cmd in transform_to_command(c.to_dto(), c.study_id)]
    matrices = {matrix for command in variant_study_commands for matrix in command.get_inner_matrices()}
    return matrices