modName = $matches['mod']; $this->addSolution((new ModMissingSolution())->setModName($this->modName)); } public function getModName(): string { return $this->modName; } public function getMessage(): string { return sprintf('Required mod "%s" not found.', $this->modName); } public function isEqual(InsightInterface $insight): bool { return $insight instanceof self && $insight->getModName() === $this->modName; } }