public function getByName($report_type_name)
    {
        foreach ($this->all() as $item) {
            if ($item instanceof ReportTypeInterface && $item->getName() === $report_type_name) {
                return $item;
            }
        }
    }
public function getByName($report_type_name)
    {
        foreach ($this->all() as $item) {
            if ($item instanceof ReportTypeInterface && $item->getName() === $report_type_name) {
                return $item;
            }
        }
    }
{@inheritdoc}